# HG changeset patch # User roland # Date 1401094138 -7200 # Node ID f39a3df32983684d4264f357a327372a33f1662d # Parent 0ebd6fe70309cab6f40be3b707a9e59e42ac105d 8042557: compiler/uncommontrap/TestSpecTrapClassUnloading.java fails with: GC triggered before VM initialization completed Summary: larger heap size, bug fix when trying to exhaust memory Reviewed-by: vlivanov, twisti, kvn diff -r 0ebd6fe70309 -r f39a3df32983 hotspot/test/compiler/uncommontrap/TestSpecTrapClassUnloading.java --- a/hotspot/test/compiler/uncommontrap/TestSpecTrapClassUnloading.java Sat May 24 00:04:21 2014 +0400 +++ b/hotspot/test/compiler/uncommontrap/TestSpecTrapClassUnloading.java Mon May 26 10:48:58 2014 +0200 @@ -25,7 +25,7 @@ * @test * @bug 8031752 * @summary speculative traps need to be cleaned up at GC - * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:+UseTypeSpeculation -XX:TypeProfileLevel=222 -XX:CompileCommand=exclude,java.lang.reflect.Method::invoke -XX:CompileCommand=exclude,sun.reflect.DelegatingMethodAccessorImpl::invoke -Xmx1M TestSpecTrapClassUnloading + * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:+UseTypeSpeculation -XX:TypeProfileLevel=222 -XX:CompileCommand=exclude,java.lang.reflect.Method::invoke -XX:CompileCommand=exclude,sun.reflect.DelegatingMethodAccessorImpl::invoke -Xmx512M TestSpecTrapClassUnloading * */ @@ -45,7 +45,7 @@ MemoryChunk other; long[] array; MemoryChunk(MemoryChunk other) { - other = other; + this.other = other; array = new long[1024 * 1024 * 1024]; } }