--- 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