private WeakOrderQueue(Stack<?> stack, Thread thread) { tail = new Link(); // Its important that we not store the Stack itself in the WeakOrderQueue as the Stack also is used in // the WeakHashMap as key. So just store the enclosed AtomicInteger which should allow to have the // Stack itself GCed. head = new Head(stack.availableSharedCapacity); head.link = tail; owner = new WeakReference<Thread>(thread); }
private WeakOrderQueue(Stack<?> stack, Thread thread) { tail = new Link(); // Its important that we not store the Stack itself in the WeakOrderQueue as the Stack also is used in // the WeakHashMap as key. So just store the enclosed AtomicInteger which should allow to have the // Stack itself GCed. head = new Head(stack.availableSharedCapacity); head.link = tail; owner = new WeakReference<Thread>(thread); }
private WeakOrderQueue(Stack<?> stack, Thread thread) { tail = new Link(); // Its important that we not store the Stack itself in the WeakOrderQueue as the Stack also is used in // the WeakHashMap as key. So just store the enclosed AtomicInteger which should allow to have the // Stack itself GCed. head = new Head(stack.availableSharedCapacity); head.link = tail; owner = new WeakReference<Thread>(thread); }
private WeakOrderQueue() { owner = null; head = new Head(null); }
private WeakOrderQueue() { owner = null; head = new Head(null); }
private WeakOrderQueue() { owner = null; head = new Head(null); }
private WeakOrderQueue(Stack<?> stack, Thread thread) { tail = new Link(); // Its important that we not store the Stack itself in the WeakOrderQueue as the Stack also is used in // the WeakHashMap as key. So just store the enclosed AtomicInteger which should allow to have the // Stack itself GCed. head = new Head(stack.availableSharedCapacity); head.link = tail; owner = new WeakReference<Thread>(thread); }
private WeakOrderQueue(Stack<?> stack, Thread thread) { tail = new Link(); // Its important that we not store the Stack itself in the WeakOrderQueue as the Stack also is used in // the WeakHashMap as key. So just store the enclosed AtomicInteger which should allow to have the // Stack itself GCed. head = new Head(stack.availableSharedCapacity); head.link = tail; owner = new WeakReference<Thread>(thread); }
private WeakOrderQueue(Stack<?> stack, Thread thread) { tail = new Link(); // Its important that we not store the Stack itself in the WeakOrderQueue as the Stack also is used in // the WeakHashMap as key. So just store the enclosed AtomicInteger which should allow to have the // Stack itself GCed. head = new Head(stack.availableSharedCapacity); head.link = tail; owner = new WeakReference<Thread>(thread); }
private WeakOrderQueue() { owner = null; head = new Head(null); }
private WeakOrderQueue(Stack<?> stack, Thread thread) { tail = new Link(); // Its important that we not store the Stack itself in the WeakOrderQueue as the Stack also is used in // the WeakHashMap as key. So just store the enclosed AtomicInteger which should allow to have the // Stack itself GCed. head = new Head(stack.availableSharedCapacity); head.link = tail; owner = new WeakReference<Thread>(thread); }
private WeakOrderQueue() { owner = null; head = new Head(null); }
private WeakOrderQueue() { owner = null; head = new Head(null); }
private WeakOrderQueue() { owner = null; head = new Head(null); }