allocator = new StackAllocator(factory);
factoryToAllocator.put(factory, allocator);
}
if (allocator.user == null) { // Activate.
allocator.user = Thread.currentThread();
FastTable activeAllocators = (FastTable) _activeAllocators.get();
activeAllocators.add(allocator);
}
if (!allocator._inUse) { // Add to lists of allocators used.
allocator._inUse = true;
if (Thread.currentThread() == getOwner())
_ownerUsedAllocators.add(allocator);