hotspot/src/share/vm/memory/allocation.hpp
changeset 10547 ea4a2ec31ae2
parent 9403 6f3c6231c20a
child 13195 be27e1b6a4b9
--- a/hotspot/src/share/vm/memory/allocation.hpp	Sat Sep 10 17:29:02 2011 -0700
+++ b/hotspot/src/share/vm/memory/allocation.hpp	Sun Sep 11 14:48:24 2011 -0700
@@ -151,6 +151,8 @@
 //------------------------------Chunk------------------------------------------
 // Linked list of raw memory chunks
 class Chunk: public CHeapObj {
+  friend class VMStructs;
+
  protected:
   Chunk*       _next;     // Next Chunk in list
   const size_t _len;      // Size of this Chunk
@@ -200,6 +202,8 @@
   friend class ResourceMark;
   friend class HandleMark;
   friend class NoHandleMark;
+  friend class VMStructs;
+
   Chunk *_first;                // First chunk
   Chunk *_chunk;                // current chunk
   char *_hwm, *_max;            // High water mark and max in current chunk