Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8326521

JFR: CompilerPhase event test fails on windows 32 bit

XMLWordPrintable

    • jfr
    • b15
    • x86
    • windows

        jdk/jfr/event/compiler/TestCompilerPhase.java fails on windows 32 bit because jdk.TestCompilerPhase are only emitted from C2 code in Hotspot. But windows 32 bit is restricted to C1 compilation only by default.

        ----------System.out:(4/182)----------
        CompileCommand: compileonly jdk/jfr/event/compiler/TestCompilerPhase.dummyMethod bool compileonly = true
        1 compiler directives added
        WB error: invalid compilation level 4
        hello!
        ----------System.err:(16/1050)----------
        java.lang.RuntimeException: No events: expected false, was true
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertFalse(Asserts.java:461)
        at jdk.test.lib.jfr.Events.hasEvents(Events.java:161)
        at jdk.jfr.event.compiler.TestCompilerPhase.main(TestCompilerPhase.java:76)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:840)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: No events: expected false, was true
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: No events: expected false, was true


        See https://github.com/adoptium/aqa-tests/issues/3045 for the original Adoptium failure report. See https://github.com/adoptium/aqa-tests/issues/3045#issuecomment-1955164264 for more details.

              rtoyonaga Robert Toyonaga
              rtoyonaga Robert Toyonaga
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: