Fix a few areas of concern spotted by JITWatch
This commit is contained in:
@@ -48,8 +48,6 @@ public class LibdeflateVelocityCompressor implements VelocityCompressor {
|
||||
@Override
|
||||
public void deflate(ByteBuf source, ByteBuf destination) throws DataFormatException {
|
||||
ensureNotDisposed();
|
||||
source.memoryAddress();
|
||||
destination.memoryAddress();
|
||||
|
||||
while (true) {
|
||||
long sourceAddress = source.memoryAddress() + source.readerIndex();
|
||||
|
@@ -31,7 +31,6 @@ public class NativeVelocityCipher implements VelocityCipher {
|
||||
@Override
|
||||
public void process(ByteBuf source) {
|
||||
ensureNotDisposed();
|
||||
source.memoryAddress();
|
||||
|
||||
long base = source.memoryAddress() + source.readerIndex();
|
||||
int len = source.readableBytes();
|
||||
|
Reference in New Issue
Block a user