--- 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; }