< prev index next >

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

Print this page
@@ -61,10 +61,11 @@
              return null;
          }
      }
  
      public static void premain(String agentArgs, Instrumentation inst) throws Exception {
+         System.gc();
          LoggingTransformer t = new LoggingTransformer();
          inst.addTransformer(t, true);
          {
              Class demoClass = Class.forName("RedefineLeak$Tester");
  
< prev index next >