275 |
275 |
276 // Update the number of full collections that have been |
276 // Update the number of full collections that have been |
277 // completed. This will also notify the FullGCCount_lock in case a |
277 // completed. This will also notify the FullGCCount_lock in case a |
278 // Java thread is waiting for a full GC to happen (e.g., it |
278 // Java thread is waiting for a full GC to happen (e.g., it |
279 // called System.gc() with +ExplicitGCInvokesConcurrent). |
279 // called System.gc() with +ExplicitGCInvokesConcurrent). |
280 g1->increment_full_collections_completed(true /* outer */); |
280 _sts.join(); |
|
281 g1->increment_full_collections_completed(true /* concurrent */); |
|
282 _sts.leave(); |
281 } |
283 } |
282 assert(_should_terminate, "just checking"); |
284 assert(_should_terminate, "just checking"); |
283 |
285 |
284 terminate(); |
286 terminate(); |
285 } |
287 } |