< prev index next >

src/hotspot/share/gc/shared/collectedHeap.hpp

Print this page
rev 52056 : 8211270: GC abstraction to get real object and headers size

@@ -574,10 +574,12 @@
   // Deduplicate the string, iff the GC supports string deduplication.
   virtual void deduplicate_string(oop str);
 
   virtual bool is_oop(oop object) const;
 
+  virtual size_t obj_size(oop obj) const;
+
   // Non product verification and debugging.
 #ifndef PRODUCT
   // Support for PromotionFailureALot.  Return true if it's time to cause a
   // promotion failure.  The no-argument version uses
   // this->_promotion_failure_alot_count as the counter.
< prev index next >