X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=tests%2FGarbage1.java;fp=tests%2FGarbage1.java;h=4b36d86727b653910666c3b2ab9f91f9ca73c068;hb=69737e443614cbe6c2acec6c3f7f6918325d4435;hp=0000000000000000000000000000000000000000;hpb=94a3c50f1c43a7001791fed77560f268fc6d72a3;p=mate.git diff --git a/tests/Garbage1.java b/tests/Garbage1.java new file mode 100644 index 0000000..4b36d86 --- /dev/null +++ b/tests/Garbage1.java @@ -0,0 +1,31 @@ +package tests; + + +public class Garbage1 +{ + + + public Garbage1(){} + + public static void main(String args[]) + { + + Big2 big2 = new Big2(); + for(int i=0;i<0x2800;i++) + { + big2 = new Big2(); + } + System.out.println("memory: todo"); + } +} + +class Big2 +{ + private int[]arr; + + public Big2() + { + arr = new int[0x400]; + //System.out.println("foo"); + } +}