comparison src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp @ 139:c0492d52d55b

6539517: CR 6186200 should be extended to perm gen allocation to prevent spurious OOM's from perm gen Reviewed-by: ysr, jmasa
author apetrusenko
date Tue, 01 Apr 2008 15:13:47 +0400
parents a61af66fc99e
children 3febac328d82
comparison
equal deleted inserted replaced
95:d05ebaf00ed0 139:c0492d52d55b
997 NOT_PRODUCT(_mark_bitmap.reset_counters()); 997 NOT_PRODUCT(_mark_bitmap.reset_counters());
998 DEBUG_ONLY(add_obj_count = add_obj_size = 0;) 998 DEBUG_ONLY(add_obj_count = add_obj_size = 0;)
999 DEBUG_ONLY(mark_bitmap_count = mark_bitmap_size = 0;) 999 DEBUG_ONLY(mark_bitmap_count = mark_bitmap_size = 0;)
1000 1000
1001 // Increment the invocation count 1001 // Increment the invocation count
1002 heap->increment_total_collections(); 1002 heap->increment_total_collections(true);
1003 1003
1004 // We need to track unique mark sweep invocations as well. 1004 // We need to track unique mark sweep invocations as well.
1005 _total_invocations++; 1005 _total_invocations++;
1006 1006
1007 if (PrintHeapAtGC) { 1007 if (PrintHeapAtGC) {
1962 // be calling invoke() instead. 1962 // be calling invoke() instead.
1963 void PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) { 1963 void PSParallelCompact::invoke_no_policy(bool maximum_heap_compaction) {
1964 assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint"); 1964 assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint");
1965 assert(ref_processor() != NULL, "Sanity"); 1965 assert(ref_processor() != NULL, "Sanity");
1966 1966
1967 if (GC_locker::is_active()) { 1967 if (GC_locker::check_active_before_gc()) {
1968 return; 1968 return;
1969 } 1969 }
1970 1970
1971 TimeStamp marking_start; 1971 TimeStamp marking_start;
1972 TimeStamp compaction_start; 1972 TimeStamp compaction_start;