equal
deleted
inserted
replaced
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 |