hotspot/src/share/vm/memory/space.cpp
changeset 29681 e96b344b2c42
parent 29081 c61eb4914428
child 29684 a36d90acae41
equal deleted inserted replaced
29680:e5203ed6d805 29681:e96b344b2c42
   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) {