Removed unnecessary volatile declaration.

Calls to reset() are always followed by iterate() that provides a memory barrier by changing its state, which is an AtomicReference.
This commit is contained in:
Simone Bordet 2014-06-26 10:45:00 +02:00
parent f2f19ee3ba
commit 2e57fb6fad
1 changed files with 7 additions and 7 deletions

View File

@ -557,14 +557,14 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
private class SendCallback extends IteratingCallback
{
ByteBuffer _content;
boolean _lastContent;
ResponseInfo _info;
ByteBuffer _header;
volatile Callback _callback; // TODO is this memory barrier needed?
boolean _shutdownOut;
private ResponseInfo _info;
private ByteBuffer _content;
private boolean _lastContent;
private Callback _callback;
private ByteBuffer _header;
private boolean _shutdownOut;
SendCallback()
private SendCallback()
{
super(true);
}