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
--- 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];
}
}