* @param context the context being entered.
* @throws IllegalStateException if this context is currently in use.
*/
public static final void enter(Context context) {
if (context._owner != null)
throw new IllegalStateException("Context is currently in use");
Context current = Context.getCurrentContext();
context._outer = current;
context._owner = Thread.currentThread();
context._allocator = context instanceof AllocatorContext ? (AllocatorContext) context : current._allocator;
Context.CURRENT.set(context);