codegen: handle exceptions of a method
[mate.git] / tests / Garbage1.java
1 package tests;
2
3 //import jmate.lang.MateRuntime;
4
5 public class Garbage1
6 {
7         static
8         {
9                 loadLibrary();
10         }
11
12         public static void loadLibrary()
13         {
14                 //Runtime.getRuntime().loadLibrary("MateRuntime");
15         }       
16
17         public Garbage1(){}
18
19         public static void main(String args[])
20         {
21                 //MateRuntime runtime = new MateRuntime();
22                 System.out.println("a string object");
23
24                 for(int i=0;i<0x2800;i++)
25                 {
26                         Big2 big2 = new Big2(); 
27                         if(i%0x1F==0) 
28                         { 
29                            //runtime.printMemoryUsage();
30                             System.out.printf("foo gah 0x%08x\n", i);
31                         }
32                         big2.foo();
33                 }
34                 System.out.println("done.");
35         }
36 }
37
38 class Big2
39 {
40         private int[]arr;
41
42         public Big2()
43         {
44                 arr = new int[0xF400];
45                 //System.out.println("foo");
46         }
47         
48         public void foo()
49         {
50         }
51 }