1.1 --- a/src/share/vm/gc_implementation/shared/spaceDecorator.cpp Mon Jul 28 15:30:23 2008 -0700 1.2 +++ b/src/share/vm/gc_implementation/shared/spaceDecorator.cpp Wed Jul 30 11:54:00 2008 -0700 1.3 @@ -39,7 +39,8 @@ 1.4 1.5 void SpaceMangler::set_top_for_allocations(HeapWord* v) { 1.6 if (v < end()) { 1.7 - assert(is_mangled(v), "The high water mark is not mangled"); 1.8 + assert(!CheckZapUnusedHeapArea || is_mangled(v), 1.9 + "The high water mark is not mangled"); 1.10 } 1.11 _top_for_allocations = v; 1.12 }