Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
Doug Lea writes: Classes built using AbstractQueuedSynchronizer and/or SynchronousQueue can retain garbage nodes when consumers repeatedly time out and there are never any producers/signals. Test code: get from jsr166 CVS: src/test/jtreg/util/concurrent/BlockingQueue/PollMemoryLeak.java (I don't know test harness syntax to ensure that it runs with little enough memory to trip error in finite time. You probably need to adjust this.) Fix: Check for lack of signals on cancellation and clear queues. See changes to AbstractQueuedSynchronizer and SynchronousQueue (the new AbstractQueuedLongSynchronizer also conforms.) ###@###.### 2005-03-04 04:15:39 GMT
|