JDK-8282661 : [BACKOUT] ByteBufferTest.java: replace endless recursion with RuntimeException in void ck(double x, double y)
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 19
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-03-04
  • Updated: 2022-03-07
  • Resolved: 2022-03-04
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 19
19 masterFixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The following tests are failing in Tier1 in the JDK19 CI:

   5 compiler/intrinsics/unsafe/DirectByteBufferTest.java
   5 compiler/intrinsics/unsafe/HeapByteBufferTest.java

These two tests appear to be failing on every platform.

compiler/intrinsics/unsafe/HeapByteBufferTest.java

#section:main
----------messages:(5/452)----------
command: main -XX:+UnlockDiagnosticVMOptions -XX:-UseUnalignedAccesses -Djdk.test.lib.random.seed=42 HeapByteBufferTest
reason: User specified action: run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:-UseUnalignedAccesses -Djdk.test.lib.random.seed=42 HeapByteBufferTest 
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
elapsed time (seconds): 5.078
----------configuration:(4/111)----------
Boot Layer
  add modules: java.base                   
  add exports: java.base/jdk.internal.misc ALL-UNNAMED

----------System.out:(2/132)----------
For random generator using seed: 42
To re-run test with same seed value please add "-Djdk.test.lib.random.seed=42" to command line.
----------System.err:(16/1006)----------
java.lang.RuntimeException:  x = NaN, y = NaN (x = 7ff8421160000000, y = 7ff8421160000000)
	at MyByteBuffer.ck(ByteBufferTest.java:222)
	at MyByteBuffer.getFloat(ByteBufferTest.java:247)
	at ByteBufferTest.stepUsingAccessors(ByteBufferTest.java:345)
	at ByteBufferTest.step(ByteBufferTest.java:316)
	at ByteBufferTest.run(ByteBufferTest.java:745)
	at HeapByteBufferTest.main(HeapByteBufferTest.java:51)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:828)

JavaTest Message: Test threw exception: java.lang.RuntimeException:  x = NaN, y = NaN (x = 7ff8421160000000, y = 7ff8421160000000)


compiler/intrinsics/unsafe/DirectByteBufferTest.java

----------System.out:(2/132)----------
For random generator using seed: 42
To re-run test with same seed value please add "-Djdk.test.lib.random.seed=42" to command line.
----------System.err:(16/1010)----------
java.lang.RuntimeException:  x = NaN, y = NaN (x = 7ff8421160000000, y = 7ff8421160000000)
	at MyByteBuffer.ck(ByteBufferTest.java:222)
	at MyByteBuffer.getFloat(ByteBufferTest.java:247)
	at ByteBufferTest.stepUsingAccessors(ByteBufferTest.java:345)
	at ByteBufferTest.step(ByteBufferTest.java:316)
	at ByteBufferTest.run(ByteBufferTest.java:745)
	at DirectByteBufferTest.main(DirectByteBufferTest.java:48)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:828)

JavaTest Message: Test threw exception: java.lang.RuntimeException:  x = NaN, y = NaN (x = 7ff8421160000000, y = 7ff8421160000000)


There's another bug filed but it has a slightly different failure mode:

JDK-8282555 java.lang.RuntimeException in HeapByteBufferTest.java with -XX:+OptoScheduling
Comments
Changeset: 603050bf Author: Emanuel Peter <emanuel.peter@oracle.com> Committer: Paul Sandoz <psandoz@openjdk.org> Date: 2022-03-04 16:26:14 +0000 URL: https://git.openjdk.java.net/jdk/commit/603050bfe00d7a0185d84acab2a24a803aa86f82
04-03-2022

ILW = Test failure in tier1 and 2 = P1
04-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7699 Date: 2022-03-04 15:17:17 +0000
04-03-2022