diff --git a/src/hotspot/share/gc/z/zThreadLocalData.hpp b/src/hotspot/share/gc/z/zThreadLocalData.hpp index 627c312..e8011b4 100644 --- a/src/hotspot/share/gc/z/zThreadLocalData.hpp +++ b/src/hotspot/share/gc/z/zThreadLocalData.hpp @@ -25,9 +25,11 @@ #define SHARE_GC_Z_ZTHREADLOCALDATA_HPP #include "gc/z/zMarkStack.hpp" +#include "gc/z/zNMethodBarrier.hpp" #include "runtime/thread.hpp" #include "utilities/debug.hpp" #include "utilities/sizes.hpp" +#include "utilities/macros.hpp" class ZThreadLocalData { private: @@ -62,6 +64,10 @@ public: static ByteSize address_bad_mask_offset() { return Thread::gc_data_offset() + byte_offset_of(ZThreadLocalData, _address_bad_mask); } + + static ByteSize address_nmethod_barrier_offset() { + return address_bad_mask_offset() + in_ByteSize(4); + } }; #endif // SHARE_GC_Z_ZTHREADLOCALDATA_HPP