< prev index next >

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

Print this page
rev 8331 : 8079579: Add SuspendibleThreadSetLeaver and make SuspendibleThreadSet::joint()/leave() private
Reviewed-by:

*** 72,82 **** break; } { // Include thread in safepoints ! SuspendibleThreadSetJoiner sts; stat.mark_exec(); // Process the queue for (;;) { --- 72,82 ---- break; } { // Include thread in safepoints ! SuspendibleThreadSetJoiner sts_join; stat.mark_exec(); // Process the queue for (;;) {
*** 86,98 **** } G1StringDedupTable::deduplicate(java_string, stat); // Safepoint this thread if needed ! if (sts.should_yield()) { stat.mark_block(); ! sts.yield(); stat.mark_unblock(); } } G1StringDedupTable::trim_entry_cache(); --- 86,98 ---- } G1StringDedupTable::deduplicate(java_string, stat); // Safepoint this thread if needed ! if (sts_join.should_yield()) { stat.mark_block(); ! sts_join.yield(); stat.mark_unblock(); } } G1StringDedupTable::trim_entry_cache();
< prev index next >