< prev index next >

src/hotspot/share/gc/shared/threadLocalAllocBuffer.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.

*** 47,64 **** } void ThreadLocalAllocBuffer::accumulate_statistics_before_gc() { global_stats()->initialize(); ! { ! ThreadsListHandle tlh; ! JavaThreadIterator jti(tlh.list()); ! for (JavaThread *thread = jti.first(); thread != NULL; thread = jti.next()) { thread->tlab().accumulate_statistics(); thread->tlab().initialize_statistics(); } - } // Publish new stats if some allocation occurred. if (global_stats()->allocation() != 0) { global_stats()->publish(); global_stats()->print(); --- 47,60 ---- } void ThreadLocalAllocBuffer::accumulate_statistics_before_gc() { global_stats()->initialize(); ! for (JavaThreadIteratorWithHandle jtiwh; JavaThread *thread = jtiwh.next(); ) { thread->tlab().accumulate_statistics(); thread->tlab().initialize_statistics(); } // Publish new stats if some allocation occurred. if (global_stats()->allocation() != 0) { global_stats()->publish(); global_stats()->print();
*** 133,145 **** "TLAB must be reset"); } void ThreadLocalAllocBuffer::resize_all_tlabs() { if (ResizeTLAB) { ! ThreadsListHandle tlh; ! JavaThreadIterator jti(tlh.list()); ! for (JavaThread *thread = jti.first(); thread != NULL; thread = jti.next()) { thread->tlab().resize(); } } } --- 129,139 ---- "TLAB must be reset"); } void ThreadLocalAllocBuffer::resize_all_tlabs() { if (ResizeTLAB) { ! for (JavaThreadIteratorWithHandle jtiwh; JavaThread *thread = jtiwh.next(); ) { thread->tlab().resize(); } } }
< prev index next >