< prev index next >

src/hotspot/share/gc/shared/collectedHeap.cpp

Print this page
rev 47287 : Port 09.17.Thread_SMR_logging_update from JDK9 to JDK10
rev 47289 : eosterlund, stefank CR - refactor code into threadSMR.cpp and threadSMR.hpp
rev 47292 : stefank, coleenp CR - refactor most JavaThreadIterator usage to use JavaThreadIteratorWithHandle.

*** 549,564 **** " unparsable again"); const bool use_tlab = UseTLAB; const bool deferred = _defer_initial_card_mark; // The main thread starts allocating via a TLAB even before it // has added itself to the threads list at vm boot-up. ! ThreadsListHandle tlh; ! assert(!use_tlab || tlh.length() > 0, "Attempt to fill tlabs before main thread has been added" " to threads list is doomed to failure!"); ! JavaThreadIterator jti(tlh.list()); ! for (JavaThread *thread = jti.first(); thread != NULL; thread = jti.next()) { if (use_tlab) thread->tlab().make_parsable(retire_tlabs); #if defined(COMPILER2) || INCLUDE_JVMCI // The deferred store barriers must all have been flushed to the // card-table (or other remembered set structure) before GC starts // processing the card-table (or other remembered set). --- 549,563 ---- " unparsable again"); const bool use_tlab = UseTLAB; const bool deferred = _defer_initial_card_mark; // The main thread starts allocating via a TLAB even before it // has added itself to the threads list at vm boot-up. ! JavaThreadIteratorWithHandle jtiwh; ! assert(!use_tlab || jtiwh.length() > 0, "Attempt to fill tlabs before main thread has been added" " to threads list is doomed to failure!"); ! for (; JavaThread *thread = jtiwh.next(); ) { if (use_tlab) thread->tlab().make_parsable(retire_tlabs); #if defined(COMPILER2) || INCLUDE_JVMCI // The deferred store barriers must all have been flushed to the // card-table (or other remembered set structure) before GC starts // processing the card-table (or other remembered set).
< prev index next >