Removed 'volatile' from the member variables that are protected by ThreadPoolExecutor's BlockingQueue operations

This commit is contained in:
Trustin Lee 2010-02-19 08:43:13 +00:00
parent e8c320c6c3
commit aa8e48df9f
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public class ChannelEventRunnable implements Runnable, EstimatableObjectWrapper
private final ChannelHandlerContext ctx;
private final ChannelEvent e;
volatile int estimatedSize;
int estimatedSize;
/**
* Creates a {@link Runnable} which sends the specified {@link ChannelEvent}

View File

@ -485,7 +485,7 @@ public class MemoryAwareThreadPoolExecutor extends ThreadPoolExecutor {
private static final class MemoryAwareRunnable implements Runnable {
final Runnable task;
volatile int estimatedSize;
int estimatedSize;
MemoryAwareRunnable(Runnable task) {
this.task = task;