changeset 55893:883f5702054d

8229020: Failure on CPUs allowing loads reordering: assert(_tasks[t] == 1) failed: What else? Reviewed-by: tschatzl, kbarrett
author jiefu
date Sat, 03 Aug 2019 09:04:04 +0800
parents 9c523692db7e
children 90dcbeb8455e
files src/hotspot/share/gc/shared/workgroup.cpp
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {