projects
/
cacao.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR164: Get rid of mysterious 10 trailing bytes in literal strings.
[cacao.git]
/
tests
/
gc
/
Chain.java
1
public class Chain {
2
public static final int N=500000;
3
4
public Chain next;
5
6
public static void main(String args[]) {
7
Chain top = null;
8
9
System.out.println("Building chain ...");
10
for (int i=0; i<N; i++) {
11
Chain c = new Chain();
12
c.next = top;
13
top = c;
14
}
15
16
System.out.println("Forcing collection ...");
17
System.gc();
18
}
19
}