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

compiler/profiling/spectrapredefineclass_classloaders/Launcher.java fails with VirtualMachineError

XMLWordPrintable

      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 with JDK-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.

            Unassigned Unassigned
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: