JDK-8229446 : UnsafeGetConstantField.java fails with RuntimeException: assertEquals: expected -1 to equal 0
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 14
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris
  • CPU: sparc
  • Submitted: 2019-08-13
  • Updated: 2019-08-22
  • Resolved: 2019-08-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 14
14Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Sub Tasks
JDK-8229447 :  
Description
type=Int flags=0 stable=false default=true post=Unaligned
type=Int flags=0 stable=true default=false post=Unaligned
dumping test class to /scratch/opt/mach5/mesos/work_dir/a2119708-45ca-459c-b16e-99e3fad30288/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler/scratch/2/./TestIntUnaligned__f=0__s=true__d=false.class
java.lang.RuntimeException: assertEquals: expected -1 to equal 0
	at jdk.test.lib.Asserts.fail(Asserts.java:594)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:189)
	at jdk.test.lib.Asserts.assertEQ(Asserts.java:166)
	at compiler.unsafe.UnsafeGetConstantField.runTest(UnsafeGetConstantField.java:173)
	at compiler.unsafe.UnsafeGetConstantField.testUnsafeGetFieldUnaligned(UnsafeGetConstantField.java:149)
	at compiler.unsafe.UnsafeGetConstantField.main(UnsafeGetConstantField.java:105)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:830)
Comments
I'm backing out the fix for JDK-8225670 due to performance problems. Closing this as duplicate of JDK-8230020.
22-08-2019

I've verified that this problem was introduced by the fix for JDK-8225670 but I don't see how that fix could cause the failure. I suspect that it just triggered an existing bug on Sparc (see also JDK-8225620) and will therefore problem list the test. ILW = Unexpected result of stable value with compiled code, single test on Solaris Sparc, -XX:-FoldStableValues = HLM = P3
13-08-2019

Needs to be a high priority fix or else ProblemListed due to CI tier3 noise. Please.
13-08-2019

Started to fail with the push of JDK-8225670.
13-08-2019