mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-15 04:45:25 +00:00
8231025: Incorrect method tag offset for big endian platform
Reviewed-by: egahlin
This commit is contained in:
parent
0f2eb3ad85
commit
dbc8df3b97
@ -26,6 +26,7 @@
|
||||
#define SHARE_JFR_SUPPORT_JFRTRACEIDEXTENSION_HPP
|
||||
|
||||
#include "jfr/recorder/checkpoint/types/traceid/jfrTraceId.hpp"
|
||||
#include "utilities/macros.hpp"
|
||||
|
||||
#define DEFINE_TRACE_ID_FIELD mutable traceid _trace_id
|
||||
|
||||
@ -59,10 +60,19 @@ class JfrTraceFlag {
|
||||
}
|
||||
|
||||
jbyte* flags_addr() const {
|
||||
#ifdef VM_LITTLE_ENDIAN
|
||||
return (jbyte*)&_flags;
|
||||
}
|
||||
jbyte* meta_addr() const {
|
||||
#else
|
||||
return ((jbyte*)&_flags) + 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
jbyte* meta_addr() const {
|
||||
#ifdef VM_LITTLE_ENDIAN
|
||||
return (jbyte*)(&_flags) + 1;
|
||||
#else
|
||||
return (jbyte*)&_flags;
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user