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

runtime/SharedArchiveFile/LargeSharedSpace.java didn't run out of memory

    XMLWordPrintable

Details

    • b150

    Description

      The test seems to have succeeded in it's task:

      Allocated shared space: 3230138368 bytes at 0x238a9000
      Loading classes to share ...
      Loading classes to share: done.
      Rewriting and linking classes ...
      Rewriting and linking classes: done
      Number of classes 1180
          instance classes = 1166
          obj array classes = 6
          type array classes = 8
      Updating ConstMethods ... done.
      Removing unshareable information ... done.
      ro space: 4800288 [ 33.7% of total] out of 6291456 bytes [ 76.3% used] at 0x238a9000
      rw space: 3157904 [ 22.2% of total] out of 6291456 bytes [ 50.2% used] at 0x23ea9000
      md space: 104844 [ 0.7% of total] out of 2097152 bytes [ 5.0% used] at 0x244a9000
      mc space: 27744 [ 0.2% of total] out of 1600389120 bytes [ 0.0% used] at 0x246a9000
      st space: 0 [ 0.0% of total] out of 0 bytes [100.0% used] at 0x00000000
      od space: 6145964 [ 43.2% of total] out of 12582912 bytes [ 48.8% used] at 0x83ce9000
      total : 14236744 [100.0% of total] out of 1627652096 bytes [ 0.9% used]


      Which apparently was unexpected according to the test:

      java.lang.RuntimeException: 'Unable to allocate memory for shared space' missing from stdout/stderr

      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:134)
      at LargeSharedSpace.main(LargeSharedSpace.java:57)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:537)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.base/java.lang.Thread.run(Thread.java:844)


      Too much memory available?

      Attachments

        Issue Links

          Activity

            People

              jiangli Jiangli Zhou
              jwilhelm Jesper Wilhelmsson
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: