8209139: globalCounter bootstrap issue

Reviewed-by: dcubed, dholmes
This commit is contained in:
Robbin Ehn 2018-11-08 15:31:23 +01:00
parent 1117fcb339
commit 1ce3770481
3 changed files with 28 additions and 7 deletions

View file

@ -61,11 +61,6 @@ void GlobalCounter::write_synchronize() {
// Atomic::add must provide fence since we have storeload dependency.
uintx gbl_cnt = Atomic::add(COUNTER_INCREMENT, &_global_counter._counter);
// Handle bootstrap
if (Threads::number_of_threads() == 0) {
return;
}
// Do all RCU threads.
CounterThreadCheck ctc(gbl_cnt);
for (JavaThreadIteratorWithHandle jtiwh; JavaThread *thread = jtiwh.next(); ) {