8073669: gc/TestSoftReferencesBehaviorOnOOME.java times out in nightlies
Summary: changed test scenario to more straight-forward one, added tricks to prevent compiler optimizations and added checks when OOME didn't thrown as expected.
Reviewed-by: tschatzl, jwilhelm
^build/
^dist/
nbproject/private/
^webrev
^.hgtip
^.bridge2
.DS_Store