< prev index next >


Print this page
rev 52072 : 8211955: GC abstraction for LAB reserve

@@ -307,10 +307,12 @@
   static void fill_with_object(HeapWord* start, HeapWord* end, bool zap = true) {
     fill_with_object(start, pointer_delta(end, start), zap);
   virtual void fill_with_dummy_object(HeapWord* start, HeapWord* end, bool zap);
+  size_t min_dummy_object_size() const;
+  size_t tlab_alloc_reserve() const;
   // Return the address "addr" aligned by "alignment_in_bytes" if such
   // an address is below "end".  Return NULL otherwise.
   inline static HeapWord* align_allocation_or_fail(HeapWord* addr,
                                                    HeapWord* end,

@@ -574,11 +576,11 @@
   // 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;
+  virtual size_t cell_size(size_t obj_size) const { return obj_size; }
   // 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
< prev index next >