hotspot/src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
changeset 386 7f121b1192f2
parent 1 489c9b5090e2
child 387 6b17ecb32336
equal deleted inserted replaced
342:c7bc1fed1d90 386:7f121b1192f2
   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;