37 } |
37 } |
38 |
38 |
39 |
39 |
40 void SpaceMangler::set_top_for_allocations(HeapWord* v) { |
40 void SpaceMangler::set_top_for_allocations(HeapWord* v) { |
41 if (v < end()) { |
41 if (v < end()) { |
42 assert(is_mangled(v), "The high water mark is not mangled"); |
42 assert(!CheckZapUnusedHeapArea || is_mangled(v), |
|
43 "The high water mark is not mangled"); |
43 } |
44 } |
44 _top_for_allocations = v; |
45 _top_for_allocations = v; |
45 } |
46 } |
46 |
47 |
47 // Mangle only the unused space that has not previously |
48 // Mangle only the unused space that has not previously |