projects
/
mate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GC: first working version of boehm gc. working with: 8af66bf9d36f75558ec49e0461099d5f...
[mate.git]
/
tests
/
Garbage1.java
diff --git
a/tests/Garbage1.java
b/tests/Garbage1.java
index 4b36d86727b653910666c3b2ab9f91f9ca73c068..5ffea7b97300441f9acb5a1c6d2a875260a5e72a 100644
(file)
--- a/
tests/Garbage1.java
+++ b/
tests/Garbage1.java
@@
-1,5
+1,6
@@
package tests;
package tests;
+//import jmate.lang.MateRuntime;
public class Garbage1
{
public class Garbage1
{
@@
-9,13
+10,20
@@
public class Garbage1
public static void main(String args[])
{
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++)
{
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");
}
arr = new int[0x400];
//System.out.println("foo");
}
+
+ public void foo()
+ {
+ }
}
}