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

gc/epsilon/TestMemoryMXBeans.java failed with wrong initial heap size

XMLWordPrintable

    • gc
    • b26

        A DESCRIPTION OF THE PROBLEM :
        test/hotspot/jtreg/gc/epsilon/TestMemoryMXBeans.java failed when running on linux.
        According to the error message, it seems that the initial heap size is not set properly. JTR file shows -Xmx option appears twice in the second testcase.
        Changing one of -Xmx option to -Xms option may make this test pass.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        STATUS:Passed.
        ACTUAL -
        java.lang.IllegalStateException: Init heap size is wrong: 62087168 vs 268435456
                at gc.epsilon.TestMemoryMXBeans.testMemoryBean(TestMemoryMXBeans.java:76)
                at gc.epsilon.TestMemoryMXBeans.main(TestMemoryMXBeans.java:64)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
                at java.base/java.lang.reflect.Method.invoke(Method.java:577)
                at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
                at java.base/java.lang.Thread.run(Thread.java:833)

        JavaTest Message: Test threw exception: java.lang.IllegalStateException: Init heap size is wrong: 62087168 vs 268435456
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.IllegalStateException: Init heap size is wrong: 62087168 vs 268435456

              shade Aleksey Shipilev
              myano Masanori Yano
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: