--- a/hotspot/src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp Thu Mar 27 17:22:06 2008 -0700
+++ b/hotspot/src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp Tue Apr 01 15:13:47 2008 +0400
@@ -999,7 +999,7 @@
DEBUG_ONLY(mark_bitmap_count = mark_bitmap_size = 0;)
// Increment the invocation count
- heap->increment_total_collections();
+ heap->increment_total_collections(true);
// We need to track unique mark sweep invocations as well.
_total_invocations++;
@@ -1964,7 +1964,7 @@
assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint");
assert(ref_processor() != NULL, "Sanity");
- if (GC_locker::is_active()) {
+ if (GC_locker::check_active_before_gc()) {
return;
}