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

compiler/c2/aarch64/TestFarJump.java fails with "RuntimeException: for CodeHeap < 250MB the far jump is expected to be encoded with a single branch instruction"

XMLWordPrintable

    • b19
    • aarch64
    • linux

        The following test failed in the JDK19 CI:

        compiler/c2/aarch64/TestFarJump.java

        Here's a snippet from the log file:

        #section:driver
        ----------messages:(5/179)----------
        command: driver compiler.c2.aarch64.TestFarJump
        reason: User specified action: run driver compiler.c2.aarch64.TestFarJump
        Mode: agentvm
        Agent id: 6
        elapsed time (seconds): 0.421
        ----------configuration:(18/2496)----------
        Boot Layer
          class path: /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar
          patch: java.base /opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S43514/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4a2a10-c93f-4a25-b114-096da87fb938/runs/53ab2678-d5cf-4c94-9d43-38d25348aed8/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/patches/java.base

        Test Layer
          class path: /opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S43514/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4a2a10-c93f-4a25-b114-096da87fb938/runs/53ab2678-d5cf-4c94-9d43-38d25348aed8/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2/compiler/c2/aarch64/TestFarJump.d
                      /opt/mach5/mesos/work_dir/jib-master/install/jdk-19+18-1176/src.full/open/test/hotspot/jtreg/compiler/c2/aarch64
                      /opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S43514/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4a2a10-c93f-4a25-b114-096da87fb938/runs/53ab2678-d5cf-4c94-9d43-38d25348aed8/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2/test/lib
                      /opt/mach5/mesos/work_dir/jib-master/install/jdk-19+18-1176/src.full/open/test/lib
                      /opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S43514/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4a2a10-c93f-4a25-b114-096da87fb938/runs/53ab2678-d5cf-4c94-9d43-38d25348aed8/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2
                      /opt/mach5/mesos/work_dir/jib-master/install/jdk-19+18-1176/src.full/open/test/hotspot/jtreg

        ----------rerun:(29/6936)*----------

        <snip>

        ----------System.out:(10/4782)----------
        Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-19+18-1176/linux-aarch64-open.jdk/jdk-19/bin/java -cp /opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S43514/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4a2a10-c93f-4a25-b114-096da87fb938/runs/53ab2678-d5cf-4c94-9d43-38d25348aed8/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2/compiler/c2/aarch64/TestFarJump.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-19+18-1176/src.full/open/test/hotspot/jtreg/compiler/c2/aarch64:/opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S43514/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4a2a10-c93f-4a25-b114-096da87fb938/runs/53ab2678-d5cf-4c94-9d43-38d25348aed8/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2/test/lib:/opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S43514/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4a2a10-c93f-4a25-b114-096da87fb938/runs/53ab2678-d5cf-4c94-9d43-38d25348aed8/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar -XX:-Inline -Xcomp -Xbatch -XX:+TieredCompilation -XX:+SegmentedCodeCache -XX:CompileOnly=compiler.c2.aarch64.TestFarJump::main -XX:ReservedCodeCacheSize=256M -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly compiler.c2.aarch64.TestFarJump ]
        [2022-04-11T02:20:34.985072841Z] Gathering output for process 3238574
        [Exception Handler]
          0x0000fffbf0140450: ; {runtime_call handle_exception_from_callee Runtime1 stub}
          0x0000fffbf0140450: a8ec 0390 | 0801 1691 | 0001 3fd6 | c1d5 bbd4 | 78be 930f | fcff 0000
        Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-19+18-1176/linux-aarch64-open.jdk/jdk-19/bin/java -cp /opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S43514/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4a2a10-c93f-4a25-b114-096da87fb938/runs/53ab2678-d5cf-4c94-9d43-38d25348aed8/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2/compiler/c2/aarch64/TestFarJump.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-19+18-1176/src.full/open/test/hotspot/jtreg/compiler/c2/aarch64:/opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S43514/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4a2a10-c93f-4a25-b114-096da87fb938/runs/53ab2678-d5cf-4c94-9d43-38d25348aed8/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2/test/lib:/opt/mach5/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S43514/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4a2a10-c93f-4a25-b114-096da87fb938/runs/53ab2678-d5cf-4c94-9d43-38d25348aed8/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar -XX:-Inline -Xcomp -Xbatch -XX:+TieredCompilation -XX:+SegmentedCodeCache -XX:CompileOnly=compiler.c2.aarch64.TestFarJump::main -XX:ReservedCodeCacheSize=200M -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly compiler.c2.aarch64.TestFarJump ]
        [2022-04-11T02:20:35.185813687Z] Gathering output for process 3238618
        [Exception Handler]
          0x0000fffdd3940410: ; {runtime_call handle_exception_from_callee Runtime1 stub}
          0x0000fffdd3940410: 5c50 8695 | c1d5 bbd4 | 78be 56f0 | fdff 0000
        ----------System.err:(11/674)----------
        java.lang.RuntimeException: for CodeHeap < 250MB the far jump is expected to be encoded with a single branch instruction
        at compiler.c2.aarch64.TestFarJump.runVM(TestFarJump.java:116)
        at compiler.c2.aarch64.TestFarJump.main(TestFarJump.java:128)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:828)

        JavaTest Message: Test threw exception: java.lang.RuntimeException
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: for CodeHeap < 250MB the far jump is expected to be encoded with a single branch instruction

              bulasevich Boris Ulasevich
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: