Package com.intellij.util
Class SpinAllocator<T>
- java.lang.Object
-
- com.intellij.util.SpinAllocator<T>
-
public class SpinAllocator<T> extends Object
Deprecated.deprecated as of TW-72860 SpinAllocator can be used for allocating short-live automatic objects of type T. Avoiding reenterable allocations, MAX_SIMULTANEOUS_ALLOCATIONS are concurrently possible.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpinAllocator.AllocatorDisposeException
Deprecated.static class
SpinAllocator.AllocatorExhaustedException
Deprecated.static interface
SpinAllocator.ICreator<T>
Deprecated.static interface
SpinAllocator.IDisposer<T>
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_SIMULTANEOUS_ALLOCATIONS
Deprecated.protected SpinAllocator.ICreator<T>
myCreator
Deprecated.protected SpinAllocator.IDisposer<T>
myDisposer
Deprecated.
-
Constructor Summary
Constructors Constructor Description SpinAllocator(SpinAllocator.ICreator<T> creator, SpinAllocator.IDisposer<T> disposer)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description T
alloc()
Deprecated.void
dispose(T instance)
Deprecated.
-
-
-
Field Detail
-
MAX_SIMULTANEOUS_ALLOCATIONS
public static final int MAX_SIMULTANEOUS_ALLOCATIONS
Deprecated.- See Also:
- Constant Field Values
-
myCreator
protected final SpinAllocator.ICreator<T> myCreator
Deprecated.
-
myDisposer
protected final SpinAllocator.IDisposer<T> myDisposer
Deprecated.
-
-
Constructor Detail
-
SpinAllocator
public SpinAllocator(SpinAllocator.ICreator<T> creator, SpinAllocator.IDisposer<T> disposer)
Deprecated.
-
-