< prev index next >

src/hotspot/share/memory/universe.hpp

Print this page
rev 63884 : Add cookie offset to Runtime::addressOf calculations

@@ -139,10 +139,11 @@
 
   // The particular choice of collected heap.
   static CollectedHeap* _collectedHeap;
 
   static intptr_t _non_oop_bits;
+  static intptr_t _non_heap_offset;
 
   // array of dummy objects used with +FullGCAlot
   debug_only(static OopHandle   _fullgc_alot_dummy_array;)
   debug_only(static int         _fullgc_alot_dummy_next;)
 

@@ -381,8 +382,13 @@
   static uintptr_t verify_mark_bits()         PRODUCT_RETURN0;
   static uintptr_t verify_mark_mask()         PRODUCT_RETURN0;
 
   // Compiler support
   static int base_vtable_size()               { return _base_vtable_size; }
+
+  static intptr_t non_heap_offset() {
+    assert(_non_heap_offset != 0, "Should be initialized.");
+    return _non_heap_offset;
+  }
 };
 
 #endif // SHARE_MEMORY_UNIVERSE_HPP
< prev index next >