diff -r e6b1331a51d2 -r f6f3bb0ee072 src/share/vm/memory/allocation.hpp --- a/src/share/vm/memory/allocation.hpp Sat Sep 10 17:29:02 2011 -0700 +++ b/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