JDK-8265258 : lworld] "assert(v->mark().is_larval_state()) failed: must be a larval value" with DeoptimizeALot
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2021-04-15
  • Updated: 2021-04-15
  • Resolved: 2021-04-15
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.
Other
repo-valhallaResolved
Related Reports
Duplicate :  
Description
   The converted TestIntrinsics.java test fails with the new IR framework with the assertion below. 
  
  #  Internal Error (/home/katya/work/JavaSE/Hotspot/ws/git/valhalla/open/src/hotspot/share/prims/unsafe.cpp:399), pid=22761, tid=22764
  #  assert(v->mark().is_larval_state()) failed: must be a larval value 
  #
  # JRE version: Java(TM) SE Runtime Environment (17.0) (fastdebug build 17-lworld3ea+0-2021-04-15-0500307.katya...)
  # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-lworld3ea+0-2021-04-15-0500307.katya..., mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
  # Problematic frame:
  # V  [libjvm.so+0x19863b4]  Unsafe_FinishPrivateBuffer+0xb4

 
  To reproduce checkout the latest state of the IR Framework (https://github.com/chhagedorn/valhalla/tree/TestingFramework)
  and run compiler/valhalla/inlinetypes/TestIntrinsics.java with "-XX:+UnlockExperimentalVMOptions -XX:+DeoptimizeALot"

Comments
The similar failure is observed by running compiler/valhalla/inlinetypes/TestBufferTearing.java (old framework based test) # Internal Error (/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/eb9e94db-f0ec-4c3e-8ffe-7aeffb334b4a/runs/8d3599f2-f73a-41b1-ba0a-3ae4dee93ea1/workspace/open/src/hotspot/share/prims/unsafe.cpp:241), pid=26019, tid=26064 # assert(!_obj->is_inline_type() || _obj->mark().is_larval_state()) failed: must be an object instance or a larval inline type
15-04-2021