X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=tests%2FGarbage1.java;fp=tests%2FGarbage1.java;h=5ffea7b97300441f9acb5a1c6d2a875260a5e72a;hb=3573020fca0413c6d7823e2a1d70108f25766db0;hp=4b36d86727b653910666c3b2ab9f91f9ca73c068;hpb=69737e443614cbe6c2acec6c3f7f6918325d4435;p=mate.git diff --git a/tests/Garbage1.java b/tests/Garbage1.java index 4b36d86..5ffea7b 100644 --- a/tests/Garbage1.java +++ b/tests/Garbage1.java @@ -1,5 +1,6 @@ package tests; +//import jmate.lang.MateRuntime; public class Garbage1 { @@ -9,13 +10,20 @@ public class Garbage1 public static void main(String args[]) { + //MateRuntime runtime = new MateRuntime(); + System.out.println("a string object"); - Big2 big2 = new Big2(); for(int i=0;i<0x2800;i++) { - big2 = new Big2(); + Big2 big2 = new Big2(); + if(i%0x1F==0) + { + //runtime.printMemoryUsage(); + System.out.printf("foo gah 0x%08x\n", i); + } + big2.foo(); } - System.out.println("memory: todo"); + System.out.println("done."); } } @@ -28,4 +36,8 @@ class Big2 arr = new int[0x400]; //System.out.println("foo"); } + + public void foo() + { + } }