PSPermGen::PSPermGen(ReservedSpace rs, size_t alignment, size_t initial_size, size_t min_size, size_t max_size, const char* gen_name, int level) : PSOldGen(rs, alignment, initial_size, min_size, max_size, gen_name, level), _last_used(0) { assert(object_mark_sweep() != NULL, "Sanity"); object_mark_sweep()->set_allowed_dead_ratio(PermMarkSweepDeadRatio); _avg_size = new AdaptivePaddedAverage(AdaptivePermSizeWeight, PermGenPadding); }
void PSOldGen::precompact() { ParallelScavengeHeap* heap = (ParallelScavengeHeap*)Universe::heap(); assert(heap->kind() == CollectedHeap::ParallelScavengeHeap, "Sanity"); // Reset start array first. _start_array.reset(); object_mark_sweep()->precompact(); // Now compact the young gen heap->young_gen()->precompact(); }
void PSPermGen::precompact() { // Reset start array first. _start_array.reset(); object_mark_sweep()->precompact(); }
void PSOldGen::compact() { object_mark_sweep()->compact(ZapUnusedHeapArea); }
void PSOldGen::adjust_pointers() { object_mark_sweep()->adjust_pointers(); }