-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
8, 11, 17, 19, 20
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment Temurin-11.0.17+8 (build 11.0.17+8)
OpenJDK 64-Bit Server VM Temurin-11.0.17+8 (build 11.0.17+8, mixed mode)
openjdk version "1.8.0_352"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_352-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.352-b08, mixed mode)
A DESCRIPTION OF THE PROBLEM :
Given the test program ChecksumDiff01.java, both hotspot, openj9 and graalvm give the correct output, which was -34400. However, if we convert this program into jasm code (can be found in ChecksumDiff01.jasm), openj9 can give a consistent output -34400, while hotspot and graalvm give a different output, which is 96672.
Test Program: https://drive.google.com/file/d/1Yw7iAxOYZbzoRI-IdmOQSDdBx8uLs5aH/view?usp=sharing
The test program was simplified by the developer of OpenJ9, more details can be found in: https://github.com/eclipse-openj9/openj9/issues/16498
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
First step:
javac ChecksumDiff01.java
java -cp . ChecksumDiff01
We can get the correct output:-34400
Second step:
java -jar lib/asmtools.jar jasm ChecksumDiff01.jasm
java -cp . ChecksumDiff01
We will get the wrong output: 96672
FREQUENCY : always
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment Temurin-11.0.17+8 (build 11.0.17+8)
OpenJDK 64-Bit Server VM Temurin-11.0.17+8 (build 11.0.17+8, mixed mode)
openjdk version "1.8.0_352"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_352-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.352-b08, mixed mode)
A DESCRIPTION OF THE PROBLEM :
Given the test program ChecksumDiff01.java, both hotspot, openj9 and graalvm give the correct output, which was -34400. However, if we convert this program into jasm code (can be found in ChecksumDiff01.jasm), openj9 can give a consistent output -34400, while hotspot and graalvm give a different output, which is 96672.
Test Program: https://drive.google.com/file/d/1Yw7iAxOYZbzoRI-IdmOQSDdBx8uLs5aH/view?usp=sharing
The test program was simplified by the developer of OpenJ9, more details can be found in: https://github.com/eclipse-openj9/openj9/issues/16498
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
First step:
javac ChecksumDiff01.java
java -cp . ChecksumDiff01
We can get the correct output:-34400
Second step:
java -jar lib/asmtools.jar jasm ChecksumDiff01.jasm
java -cp . ChecksumDiff01
We will get the wrong output: 96672
FREQUENCY : always