equal
deleted
inserted
replaced
82 |
82 |
83 // Simply mangle the MemRegion mr. |
83 // Simply mangle the MemRegion mr. |
84 void SpaceMangler::mangle_region(MemRegion mr) { |
84 void SpaceMangler::mangle_region(MemRegion mr) { |
85 assert(ZapUnusedHeapArea, "Mangling should not be in use"); |
85 assert(ZapUnusedHeapArea, "Mangling should not be in use"); |
86 #ifdef ASSERT |
86 #ifdef ASSERT |
87 log_develop_trace(gc)("Mangling [" PTR_FORMAT " to " PTR_FORMAT ")", p2i(mr.start()), p2i(mr.end())); |
|
88 Copy::fill_to_words(mr.start(), mr.word_size(), badHeapWord); |
87 Copy::fill_to_words(mr.start(), mr.word_size(), badHeapWord); |
89 log_develop_trace(gc)("Mangling done."); |
|
90 #endif |
88 #endif |
91 } |
89 } |
92 |
90 |
93 // Check that top, top_for_allocations and the last |
91 // Check that top, top_for_allocations and the last |
94 // word of the space are mangled. In a tight memory |
92 // word of the space are mangled. In a tight memory |