-
Bug
-
Resolution: Fixed
-
P4
-
11, 17, 18
-
b26
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8297249 | 17.0.7-oracle | Adithya Haradi Gopal | P4 | Resolved | Fixed | b01 |
JDK-8297321 | 17.0.6 | Aleksey Shipilev | P4 | Resolved | Fixed | b04 |
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
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
- backported by
-
JDK-8297249 gc/epsilon/TestMemoryMXBeans.java failed with wrong initial heap size
- Resolved
-
JDK-8297321 gc/epsilon/TestMemoryMXBeans.java failed with wrong initial heap size
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/112ea1d7
-
Commit openjdk/jdk/37ff7f3b
-
Review openjdk/jdk17u-dev/892
-
Review openjdk/jdk/6574
(1 links to)