hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
changeset 29580 a67a581cfe11
parent 29472 740ba666f6bb
child 29584 5b3cb9f0e39d
equal deleted inserted replaced
29477:82f545c6572b 29580:a67a581cfe11
  2168       {
  2168       {
  2169         MutexLockerEx x(SecondaryFreeList_lock, Mutex::_no_safepoint_check_flag);
  2169         MutexLockerEx x(SecondaryFreeList_lock, Mutex::_no_safepoint_check_flag);
  2170         g1h->secondary_free_list_add(&tmp_free_list);
  2170         g1h->secondary_free_list_add(&tmp_free_list);
  2171         SecondaryFreeList_lock->notify_all();
  2171         SecondaryFreeList_lock->notify_all();
  2172       }
  2172       }
  2173 
  2173 #ifndef PRODUCT
  2174       if (G1StressConcRegionFreeing) {
  2174       if (G1StressConcRegionFreeing) {
  2175         for (uintx i = 0; i < G1StressConcRegionFreeingDelayMillis; ++i) {
  2175         for (uintx i = 0; i < G1StressConcRegionFreeingDelayMillis; ++i) {
  2176           os::sleep(Thread::current(), (jlong) 1, false);
  2176           os::sleep(Thread::current(), (jlong) 1, false);
  2177         }
  2177         }
  2178       }
  2178       }
       
  2179 #endif
  2179     }
  2180     }
  2180   }
  2181   }
  2181   assert(tmp_free_list.is_empty(), "post-condition");
  2182   assert(tmp_free_list.is_empty(), "post-condition");
  2182 }
  2183 }
  2183 
  2184