Lines Matching defs:storage
106 public final ObjStorage storage;
195 * region0 storage[0] = new Object[N]
197 * storage[K-1] = new Object[N]
199 * region1 storage[K] = new Object[N]
201 * storage[2*K - 1] = new Object[N]
205 * regionX storage[X*K] = new Object[N]
207 * storage[(X+1)*K -1] = new Object[N]
219 storage = new ObjStorage(regionCount * K);
221 // Add objects as long as there is space in the storage
223 while (!storage.isFull() && (rt.maxMemory() - used) > freeMemoryLimit) {
224 storage.addArray(new Object[N]);
267 Object celebrity = cur > pre ? storage.getArrayAt(to * K) : null;
275 Object[] rnArray = storage.getArrayAt(getY(to, from, rn));
303 Object[] rnArray = storage.getArrayAt(getY(to, from, rn));
307 // 'Refresh' storage elements for the region 'to'
311 storage.setArrayAt(to * K + k, new Object[N]);
354 //Helper class to encapsulate the object array storage.
356 public final Object[][] storage;
360 storage = new Object[size][];
365 return usedCount >= storage.length;
372 storage[usedCount++] = objects;
375 // Limit by usedCount since memory limits can cause the storage
378 storage[i % usedCount] = objects;
381 // Limit by usedCount since memory limits can cause the storage
384 return storage[i % usedCount];