< prev index next >

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

Print this page




 335                              _capacity_at_prologue / (double) K,
 336                              expansion_for_promotion / (double) K,
 337                              shrink_bytes / (double) K);
 338     }
 339   }
 340   // Don't shrink unless it's significant
 341   if (shrink_bytes >= _min_heap_delta_bytes) {
 342     shrink(shrink_bytes);
 343   }
 344 }
 345 
 346 // Currently nothing to do.
 347 void CardGeneration::prepare_for_verify() {}
 348 
 349 void CardGeneration::space_iterate(SpaceClosure* blk,
 350                                                  bool usedOnly) {
 351   blk->do_space(space());
 352 }
 353 
 354 void CardGeneration::younger_refs_iterate(OopsInGenClosure* blk, uint n_threads) {
 355   blk->set_generation(this);
 356   younger_refs_in_space_iterate(space(), blk, n_threads);
 357   blk->reset_generation();
 358 }


 335                              _capacity_at_prologue / (double) K,
 336                              expansion_for_promotion / (double) K,
 337                              shrink_bytes / (double) K);
 338     }
 339   }
 340   // Don't shrink unless it's significant
 341   if (shrink_bytes >= _min_heap_delta_bytes) {
 342     shrink(shrink_bytes);
 343   }
 344 }
 345 
 346 // Currently nothing to do.
 347 void CardGeneration::prepare_for_verify() {}
 348 
 349 void CardGeneration::space_iterate(SpaceClosure* blk,
 350                                                  bool usedOnly) {
 351   blk->do_space(space());
 352 }
 353 
 354 void CardGeneration::younger_refs_iterate(OopsInGenClosure* blk, uint n_threads) {
 355   blk->assert_generation(this);
 356   younger_refs_in_space_iterate(space(), blk, n_threads);

 357 }
< prev index next >