2007-07-16 01:03:02 +00:00
|
|
|
public class GC {
|
2007-06-21 01:37:43 +00:00
|
|
|
|
2007-06-22 23:17:13 +00:00
|
|
|
private static void small() {
|
2007-06-21 22:51:13 +00:00
|
|
|
for (int i = 0; i < 1024; ++i) {
|
|
|
|
byte[] a = new byte[4 * 1024];
|
|
|
|
}
|
2007-06-22 23:17:13 +00:00
|
|
|
}
|
2007-06-21 22:51:13 +00:00
|
|
|
|
2007-06-22 23:17:13 +00:00
|
|
|
private static void medium() {
|
2007-06-22 22:47:57 +00:00
|
|
|
for (int i = 0; i < 8; ++i) {
|
2007-06-21 22:51:13 +00:00
|
|
|
Object[] array = new Object[32];
|
|
|
|
for (int j = 0; j < 32; ++j) {
|
|
|
|
array[j] = new byte[32 * 1024];
|
|
|
|
}
|
2007-06-21 18:35:24 +00:00
|
|
|
}
|
2007-06-22 23:17:13 +00:00
|
|
|
}
|
2007-06-22 22:47:57 +00:00
|
|
|
|
2007-06-22 23:17:13 +00:00
|
|
|
private static void large() {
|
2007-06-22 22:47:57 +00:00
|
|
|
for (int i = 0; i < 8; ++i) {
|
|
|
|
byte[] a = new byte[16 * 1024 * 1024];
|
|
|
|
}
|
2007-06-21 01:37:43 +00:00
|
|
|
}
|
|
|
|
|
2007-06-22 23:17:13 +00:00
|
|
|
public static void main(String[] args) {
|
|
|
|
small();
|
|
|
|
medium();
|
|
|
|
large();
|
|
|
|
}
|
|
|
|
|
2007-06-21 01:37:43 +00:00
|
|
|
}
|