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

TestShrinkDefragmentedHeap.java runs out of memory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b74

        Test ran out of memory. From the log:

        Will allocate objects of small size = 10.0 KiB and humongous size = 1.1 MiB#0: [GC pause (G1 Evacuation Pause) (young)-- 192M->192M(200M), 2.2989680 secs]
        #1: [Full GC (Allocation Failure) 192M->190M(200M), 1.6256443 secs]
        #2: [GC pause (G1 Evacuation Pause) (young)-- 192M->192M(200M), 0.0220341 secs]
        #3: [Full GC (Allocation Failure) 192M->191M(200M), 0.9481387 secs]
        #4: [Full GC (Allocation Failure) 191M->191M(200M), 0.9399593 secs]
        #5: [GC pause (G1 Evacuation Pause) (young) 191M->191M(200M), 0.0053571 secs]
        #6: [GC pause (G1 Evacuation Pause) (young) (initial-mark) 191M->191M(200M), 0.0089996 secs]
        #7: [GC concurrent-root-region-scan-start]
        #7: [GC concurrent-root-region-scan-end, 0.0000837 secs]
        #7: [GC concurrent-mark-start]
        #8: [Full GC (Allocation Failure) 191M->136M(194M), 1.5671174 secs]
        #7: [GC concurrent-mark-abort]
        ];
         stderr: [Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at TestShrinkDefragmentedHeap$GCTest.allocateList(TestShrinkDefragmentedHeap.java:157)
        at TestShrinkDefragmentedHeap$GCTest.allocate(TestShrinkDefragmentedHeap.java:121)
        at TestShrinkDefragmentedHeap$GCTest.test(TestShrinkDefragmentedHeap.java:100)
        at TestShrinkDefragmentedHeap$GCTest.main(TestShrinkDefragmentedHeap.java:94)
        ]
         exitValue = 1

        java.lang.RuntimeException: Expected to get exit value of [0]

        at jdk.test.lib.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:362)
        at TestShrinkDefragmentedHeap.main(TestShrinkDefragmentedHeap.java:70)
        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:502)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:745)

              sjohanss Stefan Johansson
              jwilhelm Jesper Wilhelmsson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: