changeset 6361:e9bd2a761882

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
author roland
date Thu, 24 Apr 2014 11:05:07 +0200
parents 9f916a62b252
children a123d95f638f
files test/compiler/profiling/spectrapredefineclass/Agent.java test/compiler/profiling/spectrapredefineclass/Launcher.java
diffstat 2 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/test/compiler/profiling/spectrapredefineclass/Agent.java	Thu Apr 24 09:47:34 2014 +0200
+++ b/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/test/compiler/profiling/spectrapredefineclass/Launcher.java	Thu Apr 24 09:47:34 2014 +0200
+++ b/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  {