Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/globalDefinitions.hpp @ 263:12eea04c8b06
6672698: mangle_unused_area() should not remangle the entire heap at each collection.
Summary: Maintain a high water mark for the allocations in a space and mangle only up to that high water mark.
Reviewed-by: ysr, apetrusenko
author | jmasa |
---|---|
date | Wed, 09 Jul 2008 15:08:55 -0700 |
parents | f3de1255b035 |
children | 850fdf70db2b |
comparison
equal
deleted
inserted
replaced
225:286bee59f34b | 263:12eea04c8b06 |
---|---|
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 |