8209850: Allow NamedThreads to use GlobalCounter critical sections

Add NamedThreads iterator and make GlobalCounter use it.

Reviewed-by: eosterlund, rehn
This commit is contained in:
Kim Barrett 2018-08-23 18:14:53 -04:00
parent 8b138c684a
commit 23f0fb4cde
11 changed files with 458 additions and 69 deletions

View file

@ -71,5 +71,7 @@ void GlobalCounter::write_synchronize() {
for (JavaThreadIteratorWithHandle jtiwh; JavaThread *thread = jtiwh.next(); ) {
ctc.do_thread(thread);
}
ctc.do_thread(VMThread::vm_thread());
for (NamedThread::Iterator nti; !nti.end(); nti.step()) {
ctc.do_thread(nti.current());
}
}