8319375: test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineLeakThrowable.java runs into OutOfMemoryError: Metaspace on AIX

Reviewed-by: kevinw, lucy, dholmes
This commit is contained in:
Matthias Baesken 2023-11-13 07:53:03 +00:00
parent 50f41d6370
commit e035637a4c

View File

@ -23,16 +23,32 @@
/*
* @test
# @bug 8308762
* @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
* @run main/othervm/timeout=6000 -javaagent:redefineagent.jar -XX:MetaspaceSize=23m -XX:MaxMetaspaceSize=23m 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
*/
class Tester {