update Test.java to work the GC harder

This commit is contained in:
Joel Dice 2007-06-21 16:51:13 -06:00
parent e794fdb57f
commit bbae384bd2

View File

@ -1,8 +1,15 @@
public class Test {
public static void main(String[] args) {
while (true) {
byte[] array = new byte[4 * 1024];
for (int i = 0; i < 1024; ++i) {
byte[] a = new byte[4 * 1024];
}
for (int i = 0; i < 1024; ++i) {
Object[] array = new Object[32];
for (int j = 0; j < 32; ++j) {
array[j] = new byte[32 * 1024];
}
}
}