456956 Reduce ThreadLocal.remove() weak reference garbage

This commit is contained in:
Greg Wilkins 2015-01-08 11:39:40 +01:00
parent 2b530939a7
commit 3fed24127f
1 changed files with 1 additions and 3 deletions

View File

@ -505,9 +505,7 @@ public class GzipFilter extends UserAgentFilter
if (_allocatedBuffer==null)
_allocatedBuffer = new byte[_bufferSize];
else
{
_buffer.remove();
}
_buffer.set(null);
switch (compressionType)
{