equal
deleted
inserted
replaced
351 mangler()->mangle_unused_area(); |
351 mangler()->mangle_unused_area(); |
352 } |
352 } |
353 void ContiguousSpace::mangle_unused_area_complete() { |
353 void ContiguousSpace::mangle_unused_area_complete() { |
354 mangler()->mangle_unused_area_complete(); |
354 mangler()->mangle_unused_area_complete(); |
355 } |
355 } |
356 void ContiguousSpace::mangle_region(MemRegion mr) { |
|
357 // Although this method uses SpaceMangler::mangle_region() which |
|
358 // is not specific to a space, the when the ContiguousSpace version |
|
359 // is called, it is always with regard to a space and this |
|
360 // bounds checking is appropriate. |
|
361 MemRegion space_mr(bottom(), end()); |
|
362 assert(space_mr.contains(mr), "Mangling outside space"); |
|
363 SpaceMangler::mangle_region(mr); |
|
364 } |
|
365 #endif // NOT_PRODUCT |
356 #endif // NOT_PRODUCT |
366 |
357 |
367 void CompactibleSpace::initialize(MemRegion mr, |
358 void CompactibleSpace::initialize(MemRegion mr, |
368 bool clear_space, |
359 bool clear_space, |
369 bool mangle_space) { |
360 bool mangle_space) { |