src/hotspot/share/classfile/classLoaderData.hpp
changeset 54839 e9db10a375d9
parent 54807 33fe50b6d707
child 55268 c5fe45d1281d
child 58678 9cf78a70fa4f
--- a/src/hotspot/share/classfile/classLoaderData.hpp	Tue May 14 12:00:49 2019 +0200
+++ b/src/hotspot/share/classfile/classLoaderData.hpp	Tue May 14 12:07:24 2019 +0200
@@ -300,6 +300,10 @@
   ModuleEntryTable* modules();
   bool modules_defined() { return (_modules != NULL); }
 
+  // Offsets
+  static ByteSize holder_offset()     { return in_ByteSize(offset_of(ClassLoaderData, _holder)); }
+  static ByteSize keep_alive_offset() { return in_ByteSize(offset_of(ClassLoaderData, _keep_alive)); }
+
   // Loaded class dictionary
   Dictionary* dictionary() const { return _dictionary; }