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

Stefan Karlsson stefan.karlsson at oracle.com
Tue Jun 30 13:00:12 UTC 2015


Looks good.

StefanK

On 2015-06-30 14:54, 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.
>
> 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