JDK-8151137 : [TESTBUG] UnsafeGetStableArrayElement.java still fails with "(assert failed: 0 != 0)"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-03-03
  • Updated: 2020-09-01
  • Resolved: 2016-03-24
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
9Resolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Sub Tasks
JDK-8151157 :  
Description
The UnsafeGetStableArrayElement.java test still fails after the fix for JDK-8151020 was pushed.

Java HotSpot(TM) Embedded Client VM 9 b0 (9-internal+0-2016-03-02-124336.vlivanov.hs-comp9)
Intel Xeon 2901 MHz, 32 cores, 252G, Linux / Oracle Linux 7.0, x86_64 
----------messages:(3/409)----------
command: main -XX:+UnlockDiagnosticVMOptions -Xbatch -XX:-TieredCompilation -XX:+FoldStableValues -XX:CompileCommand=dontinline,*Test::test* UnsafeGetStableArrayElement
reason: User specified action: run main/bootclasspath -XX:+UnlockDiagnosticVMOptions -Xbatch -XX:-TieredCompilation -XX:+FoldStableValues -XX:CompileCommand=dontinline,*Test::test* UnsafeGetStableArrayElement 
elapsed time (seconds): 2.472
----------System.out:(1/39)----------
CompileCommand: dontinline *Test.test*
----------System.err:(20/1207)----------
java.lang.RuntimeException: (assert failed: true == false)
	at jdk.test.lib.Asserts.error(Asserts.java:447)
	at jdk.test.lib.Asserts.assertTrue(Asserts.java:374)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:169)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:152)
	at jdk.test.lib.Asserts.assertEQ(Asserts.java:134)
	at UnsafeGetStableArrayElement.run(UnsafeGetStableArrayElement.java:200)
	at UnsafeGetStableArrayElement.testMatched(UnsafeGetStableArrayElement.java:211)
	at UnsafeGetStableArrayElement.main(UnsafeGetStableArrayElement.java:222)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:520)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(Thread.java:804)

JavaTest Message: Test threw exception: java.lang.RuntimeException: (assert failed: true == false)
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: (assert failed: true == false)


Comments
The test is not applicable to the Client VM. The test is marked as such: * @requires vm.flavor != "client"
03-03-2016

Vladimir, can you please take a look? Thanks!
03-03-2016