RFR(S): 6896810:TEST_BUG: java/lang/ref/SoftReference/Pin.java fails with OOME during System.out.println

Stefan Johansson stefan.johansson at oracle.com
Tue Jun 30 15:07:34 UTC 2015


Looks good to me too,

I will sponsor the change and push it to jdk9/hs directly.

Stefan

On 2015-06-30 15:37, Chris Hegarty wrote:
> On 30 Jun 2015, at 14:05, David Holmes <david.holmes at oracle.com> wrote:
>
>> cc'ing core-libs-dev as they own this test.
>>
>> On 30/06/2015 10:54 PM, Stefan Särne wrote:
>>> Hi all,
>>>
>>> Please review and sponsor this fix.
>>>
>>> Bug: https://bugs.openjdk.java.net/browse/JDK-6896810
>>> <https://bugs.openjdk.java.net/browse/JDK-8073718>Webrev:
>>> http://cr.openjdk.java.net/~sjohanss/sponsor/ssarne/JDK-6896810/webrev.jdk.00/
>>>
>>> <http://cr.openjdk.java.net/%7Esla/stefan/8073718/webrev.00/>
>>> The test fails since it run out of memory (again) when it tries to print
>>> that the expected OOME is received. Additional allocations are done
>>> during printing and the next OOME is thrown out of the test. By freeing
>>> the "chain" that hogs the memory on the heap, the test continues and the
>>> additional checks of checking that the blocks are empty are performed
>>> and pass.
>> Seems a reasonable approach to free up the memory - or at least allow a GC to reclaim it.
> +1. Looks ok.
>
> -Chris.
>
>> David
>> -----
>>
>>> Tested: Run with all GC combinations.
>>>
>>> The test is part of tier1 for the jdk and this blocks integration from
>>> jdk9/hs to jdk9/dev and I therefore suggest it is integrated directly to
>>> jdk9/hs.
>>>
>>> Thanks,
>>> Stefan



More information about the jdk9-dev mailing list