8039960: Unexpected exit from test compiler/profiling/spectrapredefineclass/Launcher.java
Summary: the test case doesn't need to change the heap size to reproduce the failure.
Reviewed-by: twisti, kvn
--- a/hotspot/test/compiler/profiling/spectrapredefineclass/Agent.java Thu Apr 24 09:47:34 2014 +0200
+++ b/hotspot/test/compiler/profiling/spectrapredefineclass/Agent.java Thu Apr 24 11:05:07 2014 +0200
@@ -66,15 +66,6 @@
public class Agent implements ClassFileTransformer {
- static class MemoryChunk {
- MemoryChunk other;
- long[] array;
- MemoryChunk(MemoryChunk other) {
- other = other;
- array = new long[1024 * 1024 * 1024];
- }
- }
-
static public boolean m2(A a) {
boolean res = false;
if (a.getClass() == B.class) {
--- a/hotspot/test/compiler/profiling/spectrapredefineclass/Launcher.java Thu Apr 24 09:47:34 2014 +0200
+++ b/hotspot/test/compiler/profiling/spectrapredefineclass/Launcher.java Thu Apr 24 11:05:07 2014 +0200
@@ -30,7 +30,7 @@
* @build Agent
* @run main ClassFileInstaller Agent
* @run main Launcher
- * @run main/othervm -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:TypeProfileLevel=222 -Xmx1M -XX:ReservedCodeCacheSize=3M Agent
+ * @run main/othervm -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:TypeProfileLevel=222 -XX:ReservedCodeCacheSize=3M Agent
*/
public class Launcher {
public static void main(String[] args) throws Exception {