netty/netty — pull request #791 by arya (2012-12-06 18:46:19+00:00)
Title: clear out the hash table after resizing, and check for table modificatio...

this branch clears the ConcurrentIdentityHashMap Segment's table after a resize. the motivation of this change is the following:

HashedWheelTimer uses ConcurrentIdentityHashMap, and when the table resizes, tasks in the table
will have references in the oldTable despite being removed due to cancellation or expiration. when using the CMS collector, the oldTable is likely to be tenured, which means that it won't be collected for a while, and will bring in the cancelled/expired tasks with it into the oldgen. this caused unnecessary object promotion.