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

[TESTBUG] gc/g1/TestHumongousShrinkHeap.java might fail on embedded

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b83

      Backports

        Description

        Running with 7.4 MiB max heap size. Will allocate humongous object of 921.6 KiB size 0 times.
        #0: [Full GC (System.gc()) 769K->410K(6144K), 0.0499453 secs]
        #1: [GC pause (G1 Evacuation Pause) (young) 1434K->602K(6144K), 0.0244347 secs]
        [init ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocate #1 ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocate #2 ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocate #3 ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocate #4 ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocate #5 ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocate #6 ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocate #7 ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocate #8 ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocate #9 ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocate #10 ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        [allocated ] init: 8.0 MiB, used: 1.0 MiB, comm: 6.0 MiB, freeRatio ~= 83.3%
        ----------System.err:(17/1035)----------
        java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
        at java.util.ArrayList.subListRangeCheck(ArrayList.java:1019)
        at java.util.ArrayList.subList(ArrayList.java:1009)
        at TestHumongousShrinkHeap.free(TestHumongousShrinkHeap.java:110)
        at TestHumongousShrinkHeap.test(TestHumongousShrinkHeap.java:78)
        at TestHumongousShrinkHeap.main(TestHumongousShrinkHeap.java:67)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:504)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:746)

        This happens because of really small heap:
        Running with 7.4 MiB max heap size. Will allocate humongous object of 921.6 KiB size 0 times.

        The test should exit in such cases.


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dfazunen Dmitry Fazunenko (Inactive)
                Reporter:
                dfazunen Dmitry Fazunenko (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: