comparison src/share/vm/gc_implementation/shared/spaceDecorator.cpp @ 271:818a18cd69a8

6730514: assertion failure in mangling code when expanding by 0 bytes Summary: An expansion by 0 bytes was not anticipated when the assertion was composed. Reviewed-by: jjh, jcoomes, apetrusenko
author jmasa
date Wed, 30 Jul 2008 11:54:00 -0700
parents 12eea04c8b06
children 9ee9cf798b59
comparison
equal deleted inserted replaced
269:850fdf70db2b 271:818a18cd69a8
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