JDK-8296285 : test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java fails after JDK-8280378
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: riscv
  • Submitted: 2022-11-03
  • Updated: 2022-11-04
  • Resolved: 2022-11-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 20
20 masterFixed
Related Reports
Relates :  
Description
--------------------------------------------------
TEST: compiler/intrinsics/TestFloatIsFinite.java
TEST JDK: /home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/images/jdk

ACTION: build -- Failed. Compilation failed: Compilation failed
REASON: Named class compiled on demand
TIME:   0.075 seconds
messages:
command: build compiler.intrinsics.TestFloatIsFinite
reason: Named class compiled on demand
started: Thu Nov 03 15:08:21 CST 2022
Test directory:
  compile: compiler.intrinsics.TestFloatIsFinite
finished: Thu Nov 03 15:08:21 CST 2022
elapsed time (seconds): 0.075

ACTION: compile -- Failed. Compilation failed: Compilation failed
REASON: .class file out of date or does not exist
TIME:   0.071 seconds
messages:
command: compile /home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java
reason: .class file out of date or does not exist
started: Thu Nov 03 15:08:21 CST 2022
Mode: agentvm
Agent id: 1
finished: Thu Nov 03 15:08:21 CST 2022
elapsed time (seconds): 0.071
configuration:
Boot Layer (javac runtime environment)
  class path: /home/fyang/tools/jtreg-7+1/lib/jtreg.jar
  patch:      java.base /home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/patches/java.base

javac compilation environment
  source path: /home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics
               /home/fyang/openjdk-jdk-fork/test/lib
               /home/fyang/openjdk-jdk-fork/test/hotspot/jtreg
  class path:  /home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics
               /home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1/compiler/intrinsics/TestFloatIsFinite.d
               /home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1/test/lib
               /home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1

rerun:
cd /home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/scratch/1 && \
HOME=/home/fyang \
LANG=C.UTF-8 \
LC_ALL=C \
PATH=/bin:/usr/bin:/usr/sbin \
TEST_IMAGE_DIR=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/images/test \
TZ=Asia/Shanghai \
_JVM_DWARF_PATH=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/images/symbols \
    /home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/images/jdk/bin/javac \
        -J-XX:MaxRAMPercentage=12.5 \
        -J-Djava.io.tmpdir=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/tmp \
        -J-Dtest.vm.opts='-XX:MaxRAMPercentage=12.5 -Djava.io.tmpdir=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/tmp' \
        -J-Dtest.tool.vm.opts='-J-XX:MaxRAMPercentage=12.5 -J-Djava.io.tmpdir=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/tmp' \
        -J-Dtest.compiler.opts= \
        -J-Dtest.java.opts= \
        -J-Dtest.jdk=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/images/jdk \
        -J-Dcompile.jdk=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/images/jdk \
        -J-Dtest.timeout.factor=16.0 \
        -J-Dtest.nativepath=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/images/test/hotspot/jtreg/native \
        -J-Dtest.root=/home/fyang/openjdk-jdk-fork/test/hotspot/jtreg \
        -J-Dtest.name=compiler/intrinsics/TestFloatIsFinite.java \
        -J-Dtest.file=/home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java \
        -J-Dtest.src=/home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics \
        -J-Dtest.src.path=/home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics:/home/fyang/openjdk-jdk-fork/test/lib:/home/fyang/openjdk-jdk-fork/test/hotspot/jtreg \
        -J-Dtest.classes=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1/compiler/intrinsics/TestFloatIsFinite.d \
        -J-Dtest.class.path=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1/compiler/intrinsics/TestFloatIsFinite.d:/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1/test/lib:/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1 \
        -J-Dtest.class.path.prefix=/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1/compiler/intrinsics/TestFloatIsFinite.d:/home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics:/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1/test/lib:/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1 \
        -d /home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1/compiler/intrinsics/TestFloatIsFinite.d \
        -sourcepath /home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics:/home/fyang/openjdk-jdk-fork/test/lib:/home/fyang/openjdk-jdk-fork/test/hotspot/jtreg \
        -classpath /home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics:/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1/compiler/intrinsics/TestFloatIsFinite.d:/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1/test/lib:/home/fyang/openjdk-jdk-fork/build/linux-riscv64-server-release/test-support/jtreg_test_hotspot_jtreg_tier1/classes/1 /home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java
direct:
/home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java:43: error: annotation is missing element value
    @IR(counts = {IRNode.IS_FINITE_F", ">= 1"}) // At least one IsFiniteF node is generated if intrinsic is used
                                    ^
/home/fyang/openjdk-jdk-fork/test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java:43: error: unclosed string literal
    @IR(counts = {IRNode.IS_FINITE_F", ">= 1"}) // At least one IsFiniteF node is generated if intrinsic is used
                                            ^
2 errors

TEST RESULT: Failed. Compilation failed: Compilation failed
--------------------------------------------------
Comments
Changeset: 4d1bc1b5 Author: Fei Yang <fyang@openjdk.org> Date: 2022-11-04 00:56:47 +0000 URL: https://git.openjdk.org/jdk/commit/4d1bc1b5add61f443f99f6d0726ebf8e37dc14ab
04-11-2022

ILW = Test does not compile due to a type, single test and only on riscv, no workaround = MLH = P4
03-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10965 Date: 2022-11-03 07:39:05 +0000
03-11-2022

Proposed fix is trivial: diff --git a/test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java b/test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java index ed55c9312de..7fb0bebc516 100644 --- a/test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java +++ b/test/hotspot/jtreg/compiler/intrinsics/TestFloatIsFinite.java @@ -40,7 +40,7 @@ public class TestFloatIsFinite extends TestFloatClassCheck { @Test // needs to be run in (fast) debug mode @Warmup(10000) - @IR(counts = {IRNode.IS_FINITE_F", ">= 1"}) // At least one IsFiniteF node is generated if intrinsic is used + @IR(counts = {IRNode.IS_FINITE_F, ">= 1"}) // At least one IsFiniteF node is generated if intrinsic is used public void testIsFinite() { for (int i = 0; i < BUFFER_SIZE; i++) { outputs[i] = Float.isFinite(inputs[i]);
03-11-2022