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

[x86] StringRepeat.java failure on linux-x86: Could not reserve enough space for 2097152KB object heap

XMLWordPrintable

    • b15
    • x86
    • linux

        We suddenly see this failing on x86 in all releases back to jdk11u:
        ----------System.out:(2/100)----------
        Error occurred during initialization of VM
        Could not reserve enough space for 2097152KB object heap
        ----------System.err:(0/0)----------
        ----------rerun:(37/3139)*----------
        cd /home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part1/scratch/0 && \\
        HOME=/home/runner \\
        LANG=C.UTF-8 \\
        LC_ALL=C \\
        PATH=/bin:/usr/bin:/usr/sbin \\
        TEST_IMAGE_DIR=/home/runner/work/jdk/jdk/bundles/tests \\
        XDG_CONFIG_HOME=/home/runner/.config \\
        XDG_RUNTIME_DIR=/run/user/1001 \\
        _JVM_DWARF_PATH=/home/runner/work/jdk/jdk/bundles/symbols/jdk-23 \\
        CLASSPATH=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part1/classes/1/java/lang/String/StringRepeat_id1.d:/home/runner/work/jdk/jdk/test/jdk/java/lang/String:/home/runner/work/jdk/jdk/jtreg/installed/lib/javatest.jar:/home/runner/work/jdk/jdk/jtreg/installed/lib/jtreg.jar \\
            /home/runner/work/jdk/jdk/bundles/jdk/jdk-23/bin/java \\
                -Dtest.vm.opts='-Xmx768m -XX:MaxRAMPercentage=12.5 -Dtest.boot.jdk=/home/runner/work/jdk/jdk/bootjdk/jdk -Djava.io.tmpdir=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part1/tmp -ea -esa' \\
                -Dtest.tool.vm.opts='-J-Xmx768m -J-XX:MaxRAMPercentage=12.5 -J-Dtest.boot.jdk=/home/runner/work/jdk/jdk/bootjdk/jdk -J-Djava.io.tmpdir=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part1/tmp -J-ea -J-esa' \\
                -Dtest.compiler.opts= \\
                -Dtest.java.opts=-XX:-CreateCoredumpOnCrash \\
                -Dtest.jdk=/home/runner/work/jdk/jdk/bundles/jdk/jdk-23 \\
                -Dcompile.jdk=/home/runner/work/jdk/jdk/bundles/jdk/jdk-23 \\
                -Dtest.timeout.factor=4.0 \\
                -Dtest.nativepath=/home/runner/work/jdk/jdk/bundles/tests/jdk/jtreg/native \\
                -Dtest.root=/home/runner/work/jdk/jdk/test/jdk \\
                -Dtest.name=java/lang/String/StringRepeat.java#id1 \\
                -Dtest.file=/home/runner/work/jdk/jdk/test/jdk/java/lang/String/StringRepeat.java \\
                -Dtest.src=/home/runner/work/jdk/jdk/test/jdk/java/lang/String \\
                -Dtest.src.path=/home/runner/work/jdk/jdk/test/jdk/java/lang/String \\
                -Dtest.classes=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part1/classes/1/java/lang/String/StringRepeat_id1.d \\
                -Dtest.class.path=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part1/classes/1/java/lang/String/StringRepeat_id1.d \\
                -Dtest.class.path.prefix=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part1/classes/1/java/lang/String/StringRepeat_id1.d:/home/runner/work/jdk/jdk/test/jdk/java/lang/String \\
                -Xmx768m \\
                -XX:MaxRAMPercentage=12.5 \\
                -Dtest.boot.jdk=/home/runner/work/jdk/jdk/bootjdk/jdk \\
                -Djava.io.tmpdir=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part1/tmp \\
                -ea \\
                -esa \\
                -XX:-CreateCoredumpOnCrash \\
                -Djava.library.path=/home/runner/work/jdk/jdk/bundles/tests/jdk/jtreg/native \\
                -Xmx2g \\
                com.sun.javatest.regtest.agent.MainWrapper /home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_jdk_tier1_part1/java/lang/String/StringRepeat_id1.d/main.0.jta 16777216
        result: Failed. Unexpected exit from test [exit code: 1]


        test result: Failed. Unexpected exit from test [exit code: 1]

        See for example this GHA run:
        https://github.com/azvegint/jdk/actions/runs/8335172037/job/22810850849

        Let's fix it as already done in JDK-8328066 and JDK-8290899

              goetz Goetz Lindenmaier
              goetz Goetz Lindenmaier
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: