< prev index next >

src/share/vm/gc/shared/spaceDecorator.cpp

Print this page

        

*** 23,32 **** --- 23,33 ---- */ #include "precompiled.hpp" #include "gc/shared/space.inline.hpp" #include "gc/shared/spaceDecorator.hpp" + #include "logging/log.hpp" #include "utilities/copy.hpp" // Catch-all file for utility classes #ifndef PRODUCT
*** 81,97 **** // Simply mangle the MemRegion mr. void SpaceMangler::mangle_region(MemRegion mr) { assert(ZapUnusedHeapArea, "Mangling should not be in use"); #ifdef ASSERT ! if(TraceZapUnusedHeapArea) { ! gclog_or_tty->print("Mangling [" PTR_FORMAT " to " PTR_FORMAT ")", p2i(mr.start()), p2i(mr.end())); ! } Copy::fill_to_words(mr.start(), mr.word_size(), badHeapWord); ! if(TraceZapUnusedHeapArea) { ! gclog_or_tty->print_cr(" done"); ! } #endif } // Check that top, top_for_allocations and the last // word of the space are mangled. In a tight memory --- 82,94 ---- // Simply mangle the MemRegion mr. void SpaceMangler::mangle_region(MemRegion mr) { assert(ZapUnusedHeapArea, "Mangling should not be in use"); #ifdef ASSERT ! log_develop(gc)("Mangling [" PTR_FORMAT " to " PTR_FORMAT ")", p2i(mr.start()), p2i(mr.end())); Copy::fill_to_words(mr.start(), mr.word_size(), badHeapWord); ! log_develop(gc)("Mangling done."); #endif } // Check that top, top_for_allocations and the last // word of the space are mangled. In a tight memory
< prev index next >