mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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:
parent
8b138c684a
commit
23f0fb4cde
11 changed files with 458 additions and 69 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue