c40b0d2e07
Motivation: Once the interrupted flag in SingleThreadEventLoopB was set it was never reset. That way the eventloop thread was always in an interrupted state and all calls to Thread.sleep/LockSupport.parkNanos would fail. Modifications: Reset interrupted flag. Result: Number of GC runs when executing the test is down to zero (from 20 - 50). Looking at the heap dump shows >10x decrease in memory consumption e.g. the number of ForkJoinTasks is down to 25k from 350k previously. Similar is true for BlockingQueue.Node objects. |
||
---|---|---|
.. | ||
src | ||
pom.xml |