Removed 'volatile' from the member variables that are protected by ThreadPoolExecutor's BlockingQueue operations
This commit is contained in:
parent
e8c320c6c3
commit
aa8e48df9f
@ -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}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user