JDK-8229020 : Failure on CPUs allowing loads reordering: assert(_tasks[t] == 1) failed: What else?
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 8,11,13,14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-08-02
  • Updated: 2020-06-01
  • Resolved: 2019-08-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 Other
11.0.6Fixed 13.0.4Fixed 14 b09Fixed openjdk8u232Fixed
Description
---------------------------------------------------------
STDOUT:
CompileCommand: dontinline compiler/codecache/stress/Helper$TestCase.method
For random generator using seed: 5925692144458820626
To re-run test with same seed value please add "-Djdk.test.lib.random.seed=5925692144458820626" to command line.
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/workgroup.cpp:436
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/home/loongson/fujie/upgrade/jdk-mips-upgrade/src/hotspot/share/gc/shared/workgroup.cpp:436), pid=8637, tid=8662
#  assert(_tasks[t] == 1) failed: What else?
#
# JRE version: OpenJDK Runtime Environment (14.0) (fastdebug build 14-internal+0-adhoc.loongson.jdk-mips-upgrade)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 14-internal+0-adhoc.loongson.jdk-mips-upgrade, mixed mode, sharing, compressed oops, g1 gc, linux-mips64el)
# Problematic frame:
# V  [libjvm.so+0x15d8144]  SubTasksDone::try_claim_task(unsigned int)+0xb4
#
---------------------------------------------------------

The failure was first observed on our Loongson CPUs which allow loads reordering with the following test
---------------------------------------------------------
make test TEST="compiler/codecache/stress/UnexpectedDeoptimizationTest.java" CONF=fastdebug
---------------------------------------------------------

Comments
Fix request (13u): Same rationale as for 11u and 8u, the original patch applies cleanly.
26-05-2020

8u Fix Request: I would like backport this patch to 8u. This is a low risk, one line fix, that removes a paranoid assertion, may trigger false alarm on weak memory systems. 11u patch applies cleanly after file patch change.
28-10-2019

Thanks Zhengyu Gu for this backport.
12-10-2019

11u Fix Request: I would like backport this patch to 11u. This is a low risk, one line fix, that removes a paranoid assertion, may trigger false alarm on weak memory systems. The original patch does not apply cleanly, mainly due to line shifts. Code review request: https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-October/002014.html
11-10-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/883f5702054d User: tschatzl Date: 2019-08-05 09:53:49 +0000
05-08-2019

RFR: https://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2019-August/026643.html
02-08-2019