public class Test { private static final int ARRAY_LENGTH = 100000; public int value; void inc() { value++; } public static Test[] testFieldCall(int incCount) { Test[] a = new Test[ARRAY_LENGTH]; for (int i = 0; i < ARRAY_LENGTH; i++) { a[i] = new Test(); } while (incCount-- > 0) { for (int i = 0; i < ARRAY_LENGTH; i++) { a[i].inc(); } } return a; } public static void main(String[] args) { Test[] result = new Test[0]; while (true) { result = testFieldCall(1000); } } }