Fix a few areas of concern spotted by JITWatch

This commit is contained in:
Andrew Steinborn
2020-06-27 21:33:05 -04:00
parent 7e1f01f13a
commit 62703780e1
3 changed files with 1 additions and 5 deletions

View File

@@ -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();

View File

@@ -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();