< prev index next >

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

Print this page

        

@@ -71,11 +71,11 @@
 class GCHeapLog : public EventLogBase<GCMessage> {
  private:
   void log_heap(CollectedHeap* heap, bool before);
 
  public:
-  GCHeapLog() : EventLogBase<GCMessage>("GC Heap History", "gc") {}
+  GCHeapLog() : EventLogBase<GCMessage>("GC Heap History") {}
 
   void log_heap_before(CollectedHeap* heap) {
     log_heap(heap, true);
   }
   void log_heap_after(CollectedHeap* heap) {

@@ -532,10 +532,15 @@
 
   virtual bool is_oop(oop object) const;
 
   virtual size_t obj_size(oop obj) const;
 
+  // Cells are memory slices allocated by the allocator. Objects are initialized
+  // in cells. The cell itself may have a header, found at a negative offset of
+  // oops. Usually, the size of the cell header is 0, but it may be larger.
+  virtual ptrdiff_t cell_header_size() const { return 0; }
+
   // 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 >