JDK-8131675 : EA fails with assert(false) failed: not unsafe or G1 barrier raw StoreP
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-07-16
  • Updated: 2017-08-24
  • Resolved: 2015-07-22
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 9
9 b76Fixed
Related Reports
Relates :  
Description
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/escape.cpp:557
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/jprt/T/P1/191355.drlong/s/hotspot/src/share/vm/opto/escape.cpp:557), pid=20110, tid=0xc99ffb70
#  assert(false) failed: not unsafe or G1 barrier raw StoreP
#
# JRE version: Java(TM) SE Runtime Environment (9.0) (build 1.9.0-internal-fastdebug-20150714191355.drlong.jdk9-comp0-b00)
# Java VM: Java HotSpot(TM) Server VM (1.9.0-internal-fastdebug-20150714191355.drlong.jdk9-comp0-b00 compiled mode linux-x86 )
# Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e" (or dumping to /scratch/local/aurora/sandbox/results/workDir/compiler/unsafe/UnsafeGetConstantField/core.20110)
#
# An error report file with more information is saved as:
# /scratch/local/aurora/sandbox/results/workDir/compiler/unsafe/UnsafeGetConstantField/hs_err_pid20110.log
#
# Compiler replay data is saved as:
# /scratch/local/aurora/sandbox/results/workDir/compiler/unsafe/UnsafeGetConstantField/replay_pid20110.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 3382705008
Comments
noreg-sqe: compiler/unsafe/UnsafeGetConstantField.java
22-07-2015

I'm able to reproduce the assertion with pre-8078629 binaries, so the problem existed before. The code which triggers the assertion: static void testUnsafeGetAddress() { long cookie = 0x12345678L; U.putAddress(nativeAddr, cookie); for (int i = 0; i < 20_000; i++) { Asserts.assertEquals(checkGetAddress(), cookie); } } @DontInline static long checkGetAddress() { return U.getAddress(nativeAddr); } Problematic StoreP corresponds to U.putAddress(nativeAddr, cookie)
20-07-2015

ILW=assert (product impact is unknown);one test, everywhere;none=H/MMH=>P1/P3=>P2
16-07-2015