61 private Object[] youngArraySmall;
62 private Object[] youngArrayLarge;
63
64 private Object nullRef;
65 private Object realRef;
66 private Object youngRef;
67
68 // For field update tests
69 public Referencer head = null;
70 public Referencer tail = null;
71 public Referencer youngHead = null;
72 public Referencer youngTail = null;
73
74 // For random number generation
75 private int m_w;
76 private int m_z;
77
78 // For field references
79 public class Referencer {
80 Referencer next = null;
81 Referencer() {
82 this.next = null;
83 }
84 void append(Referencer r) {
85 this.next = r;
86 }
87 void clear() {
88 this.next = null;
89 }
90 }
91
92 @Setup(Level.Trial)
93 public void setup() {
94 theArraySmall = new Object[NUM_REFERENCES_SMALL];
95 indicesSmall = new int[NUM_REFERENCES_SMALL];
96
97 theArrayLarge = new Object[NUM_REFERENCES_LARGE];
98 indicesLarge = new int[NUM_REFERENCES_LARGE];
99
100 m_w = (int) System.currentTimeMillis();
|
61 private Object[] youngArraySmall;
62 private Object[] youngArrayLarge;
63
64 private Object nullRef;
65 private Object realRef;
66 private Object youngRef;
67
68 // For field update tests
69 public Referencer head = null;
70 public Referencer tail = null;
71 public Referencer youngHead = null;
72 public Referencer youngTail = null;
73
74 // For random number generation
75 private int m_w;
76 private int m_z;
77
78 // For field references
79 public class Referencer {
80 Referencer next = null;
81 @SuppressWarnings("initialization")
82 Referencer() {
83 this.next = null;
84 }
85 void append(Referencer r) {
86 this.next = r;
87 }
88 void clear() {
89 this.next = null;
90 }
91 }
92
93 @Setup(Level.Trial)
94 public void setup() {
95 theArraySmall = new Object[NUM_REFERENCES_SMALL];
96 indicesSmall = new int[NUM_REFERENCES_SMALL];
97
98 theArrayLarge = new Object[NUM_REFERENCES_LARGE];
99 indicesLarge = new int[NUM_REFERENCES_LARGE];
100
101 m_w = (int) System.currentTimeMillis();
|