src/share/vm/gc_implementation/g1/concurrentMarkThread.cpp

changeset 2372
fb712ff22571
parent 2314
f95d63e2154a
child 2472
0fa27f37d4d4
equal deleted inserted replaced
2338:f0ef5f5a460f 2372:fb712ff22571
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 }

mercurial