equal
deleted
inserted
replaced
95 // hw += oop(hw)->foo(); |
95 // hw += oop(hw)->foo(); |
96 // works, where foo is a method (like size or scavenge) that returns the |
96 // works, where foo is a method (like size or scavenge) that returns the |
97 // object size. |
97 // object size. |
98 class HeapWord { |
98 class HeapWord { |
99 friend class VMStructs; |
99 friend class VMStructs; |
100 private: |
100 private: |
101 char* i; |
101 char* i; |
|
102 #ifdef ASSERT |
|
103 public: |
|
104 char* value() { return i; } |
|
105 #endif |
102 }; |
106 }; |
103 |
107 |
104 // HeapWordSize must be 2^LogHeapWordSize. |
108 // HeapWordSize must be 2^LogHeapWordSize. |
105 const int HeapWordSize = sizeof(HeapWord); |
109 const int HeapWordSize = sizeof(HeapWord); |
106 #ifdef _LP64 |
110 #ifdef _LP64 |