-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
9, 10, 11
The test fails with a VirtualMachineError during VM startup because a code cache size of 3 MB is not enough to store the c2i/i2c adapters:
----------System.out:(4/242)----------
CodeCache: size=3072Kb used=2963Kb max_used=2963Kb free=108Kb
bounds [0x000000000b6d0000, 0x000000000b9d0000, 0x000000000b9d0000]
total_blobs=5350 nmethods=302 adapters=844
compilation: disabled (not enough contiguous free space left)
----------System.err:(10/806)----------
java.lang.VirtualMachineError: Out of space in CodeCache for adapters
java.lang.VirtualMachineError: Out of space in CodeCache for adapters
at java.base/java.lang.Throwable.getOurStackTrace(Throwable.java:828)
at java.base/java.lang.Throwable.printStackTrace(Throwable.java:660)
at java.base/java.lang.Throwable.printStackTrace(Throwable.java:648)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:113)
at java.base/java.lang.Thread.run(Thread.java:844)
STATUS:Failed.`main' threw exception: java.lang.VirtualMachineError: Out of space in CodeCache for adapters
Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
----------rerun:(49/4436)*----------
This also affects compiler/profiling/spectrapredefineclass/Launcher.java. Tests were added withJDK-8040237, I don't see why such a small code cache would be required. Similar problems showed up before (JDK-8152456) but were not fixed.
The only other test that runs with such a small code cache size is SmallCodeCacheStartup and there we expect VirtualMachineErrors to happen and ignore them. The test should use a larger code cache.
----------System.out:(4/242)----------
CodeCache: size=3072Kb used=2963Kb max_used=2963Kb free=108Kb
bounds [0x000000000b6d0000, 0x000000000b9d0000, 0x000000000b9d0000]
total_blobs=5350 nmethods=302 adapters=844
compilation: disabled (not enough contiguous free space left)
----------System.err:(10/806)----------
java.lang.VirtualMachineError: Out of space in CodeCache for adapters
java.lang.VirtualMachineError: Out of space in CodeCache for adapters
at java.base/java.lang.Throwable.getOurStackTrace(Throwable.java:828)
at java.base/java.lang.Throwable.printStackTrace(Throwable.java:660)
at java.base/java.lang.Throwable.printStackTrace(Throwable.java:648)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:113)
at java.base/java.lang.Thread.run(Thread.java:844)
STATUS:Failed.`main' threw exception: java.lang.VirtualMachineError: Out of space in CodeCache for adapters
Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
----------rerun:(49/4436)*----------
This also affects compiler/profiling/spectrapredefineclass/Launcher.java. Tests were added with
The only other test that runs with such a small code cache size is SmallCodeCacheStartup and there we expect VirtualMachineErrors to happen and ignore them. The test should use a larger code cache.
- relates to
-
JDK-8152456 compiler/profiling/spectrapredefineclass/Launcher.java fails in CDS mode - no room for StubRoutines
-
- Closed
-
-
JDK-8181803 compiler/profiling/spectrapredefineclass/Launcher.java fails due to code cache exhaustion
-
- Closed
-