Home | History | Annotate | Download | only in src

Lines Matching refs:array

22  * Size of array and amount of garbage created is based on experimental
45 Object [] array = new Object[10000];
48 // We want many references in the array
54 for (int i = 0; i < array.length; i+=2) {
55 array[i] = new String("Creating some garbage" + i);
62 for (int j = 0; j < array.length; j++) {
63 Object obj = array[array.length - 1];
64 System.arraycopy(array, 0, array, 1, array.length - 1);
65 array[0] = obj;
72 for (int j = 0; j < array.length; j++) {
73 Object obj = array[0];
74 System.arraycopy(array, 1, array, 0, array.length - 1);
75 array[array.length - 1] = obj;