synchronized void recycle() { if (fragmented) { int size = bucket.size; for (int i = 0; i < allocations.length; i++) { MemoryAllocation m = allocations[i]; if (m != null) { if (m.isUnmanaged()) { allocations[i] = null; } else { clearMemory(allocations[i].address, size); } } } fragmented = false; } nextIndex = 0; bucket.recycle(this); } }
synchronized void recycle() { if (fragmented) { int size = bucket.size; for (int i = 0; i < allocations.length; i++) { MemoryAllocation m = allocations[i]; if (m != null) { if (m.isUnmanaged()) { allocations[i] = null; } else { clearMemory(allocations[i].address, size); } } } fragmented = false; } nextIndex = 0; bucket.recycle(this); } }
synchronized void recycle() { if (fragmented) { int size = bucket.size; for (int i = 0; i < allocations.length; i++) { MemoryAllocation m = allocations[i]; if (m != null) { if (m.isUnmanaged()) { allocations[i] = null; } else { clearMemory(allocations[i].address, size); } } } fragmented = false; } nextIndex = 0; bucket.recycle(this); } }
synchronized void recycle() { if (fragmented) { int size = bucket.size; for (int i = 0; i < allocations.length; i++) { MemoryAllocation m = allocations[i]; if (m != null) { if (m.isUnmanaged()) { allocations[i] = null; } else { clearMemory(allocations[i].address, size); } } } fragmented = false; } nextIndex = 0; bucket.recycle(this); } }
public boolean isAutoRelease() { return !allocation.isUnmanaged(); } }
public boolean isAutoRelease() { return !allocation.isUnmanaged(); } }
public boolean isAutoRelease() { return !allocation.isUnmanaged(); } }
synchronized void dispose() { for (int i = 0; i < allocations.length; i++) { MemoryAllocation m = allocations[i]; if (m != null && !m.isUnmanaged()) { m.dispose(); } } }
synchronized void dispose() { for (int i = 0; i < allocations.length; i++) { MemoryAllocation m = allocations[i]; if (m != null && !m.isUnmanaged()) { m.dispose(); } } }
public boolean isAutoRelease() { return !allocation.isUnmanaged(); } }
synchronized void dispose() { for (int i = 0; i < allocations.length; i++) { MemoryAllocation m = allocations[i]; if (m != null && !m.isUnmanaged()) { m.dispose(); } } }
synchronized void dispose() { for (int i = 0; i < allocations.length; i++) { MemoryAllocation m = allocations[i]; if (m != null && !m.isUnmanaged()) { m.dispose(); } } }