< prev index next >

test/hotspot/jtreg/runtime/Metaspace/FragmentMetaspace.java

Print this page

        

*** 24,34 **** /** * @test * @library /runtime/testlibrary * @modules java.base/jdk.internal.misc * @modules java.compiler ! * @run main/othervm/timeout=200 -Xmx300m FragmentMetaspace */ import java.io.IOException; /** --- 24,34 ---- /** * @test * @library /runtime/testlibrary * @modules java.base/jdk.internal.misc * @modules java.compiler ! * @run main/othervm/timeout=200 -Xmx1g FragmentMetaspace */ import java.io.IOException; /**
*** 40,51 **** public class FragmentMetaspace { public static Class<?> c; public static void main(String... args) { ! runGrowing(Long.valueOf(System.getProperty("time", "80000")), ! Integer.valueOf(System.getProperty("iterations", "200"))); // try to clean up and unload classes to decrease // class verification time in debug vm System.gc(); } --- 40,51 ---- public class FragmentMetaspace { public static Class<?> c; public static void main(String... args) { ! runGrowing(Long.valueOf(System.getProperty("time", "40000")), ! Integer.valueOf(System.getProperty("iterations", "100"))); // try to clean up and unload classes to decrease // class verification time in debug vm System.gc(); }
*** 66,74 **** --- 66,77 ---- c = null; gcl = null; } catch (IOException | InstantiationException | IllegalAccessException ex) { throw new RuntimeException(ex); + } catch (OutOfMemoryError oome) { + System.out.println("javac failed with OOM; ignored."); + return; } } } }
< prev index next >