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

compiler/profiling/spectrapredefineclass/Launcher.java fails in CDS mode - no room for StubRoutines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • 9
    • 9
    • hotspot

      Summary:
          When running in CDS mode, the following 2 tests fail:
          compiler/profiling/spectrapredefineclass/Launcher.java
          compiler/profiling/spectrapredefineclass_classloaders/Launcher.java

      Platform:
          Found on Linux-x64 bit platform

      Reproducible: 100%
          Occasionally the sharing may fail due to archive file mapping failure.
          This happens very occasionally on Linux, more often on Windows.

      Version:
          Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2016-03-21-132215.mikhailo.hs-rt)
          Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-internal+0-2016-03-21-132215.mikhailo.hs-rt, mixed mode, sharing)
          hs-rt as of 3/21/2016
         
      Steps to reproduce:
          java -Xshare:dump // this will create a shared archive
          java -Xshare:auto -version // check, ensure the keyword 'sharing' appears in the version

          Run test: jtreg -Xshare:auto hs-rt/hotspot/test/compiler/profiling/spectrapredefineclass/Launcher.java
          Note that if you run w/o -Xshare:auto, the test works well

      Error details:
         command: main -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:TypeProfileLevel=222 -XX:ReservedCodeCacheSize=3M Agent
         # There is insufficient memory for the Java Runtime Environment to continue.
         # Native memory allocation (malloc) failed to allocate 35000 bytes for CodeCache: no room for StubRoutines (2)
         # An error report file with more information is saved as:
         # repro-01/JTwork/scratch/4/hs_err_pid19817.log

      See the attached logs for more details

            ccheung Calvin Cheung
            mseledtsov Mikhailo Seledtsov
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: