8229020: Failure on CPUs allowing loads reordering: assert(_tasks[t] == 1) failed: What else?
authorjiefu
Sat, 03 Aug 2019 09:04:04 +0800
changeset 57633 883f5702054d
parent 57632 9c523692db7e
child 57634 90dcbeb8455e
8229020: Failure on CPUs allowing loads reordering: assert(_tasks[t] == 1) failed: What else? Reviewed-by: tschatzl, kbarrett
src/hotspot/share/gc/shared/workgroup.cpp
--- a/src/hotspot/share/gc/shared/workgroup.cpp	Mon Aug 05 08:03:25 2019 +0200
+++ b/src/hotspot/share/gc/shared/workgroup.cpp	Sat Aug 03 09:04:04 2019 +0800
@@ -433,7 +433,6 @@
   if (old == 0) {
     old = Atomic::cmpxchg(1u, &_tasks[t], 0u);
   }
-  assert(_tasks[t] == 1, "What else?");
   bool res = old == 0;
 #ifdef ASSERT
   if (res) {