< prev index next >

test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineLeakThrowable.java

Print this page
@@ -24,34 +24,21 @@
  /*
   * @test
   * @bug 8308762
   * @library /test/lib
   * @summary Test that redefinition of class containing Throwable refs does not leak constant pool
-  * @requires os.family == "aix"
   * @requires vm.jvmti
   * @requires vm.flagless
   * @modules java.base/jdk.internal.misc
   * @modules java.instrument
   *          java.compiler
   * @run main RedefineClassHelper
   * @run main/othervm/timeout=6000 -javaagent:redefineagent.jar -XX:MetaspaceSize=25m -XX:MaxMetaspaceSize=25m RedefineLeakThrowable
   */
  
- /*
-  * @test
-  * @bug 8308762
-  * @library /test/lib
-  * @summary Test that redefinition of class containing Throwable refs does not leak constant pool
-  * @requires os.family != "aix"
-  * @requires vm.jvmti
-  * @requires vm.flagless
-  * @modules java.base/jdk.internal.misc
-  * @modules java.instrument
-  *          java.compiler
-  * @run main RedefineClassHelper
-  * @run main/othervm/timeout=6000 -javaagent:redefineagent.jar -XX:MetaspaceSize=17m -XX:MaxMetaspaceSize=17m RedefineLeakThrowable
-  */
+ 
+ // MaxMetaspaceSize=23m allows InMemoryJavaCompiler to load even if CDS is off.
  
  class Tester {
      void test() {
          try {
              int i = 42;
< prev index next >