Skip to content

Commit

Permalink
try to fix compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Apr 20, 2024
1 parent e72fa3b commit 7706c60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public InnerAllocator() {
e);
}

this.chunkSize = directArenas[0].chunkSize;
this.chunkSize = directArenas[0].sizeClass.chunkSize;

if (memoryLogger.isTraceEnabled()) {
statusThread = new MemoryStatusThread();
Expand Down Expand Up @@ -166,7 +166,7 @@ private UnsafeDirectLittleEndian newDirectBufferL(int initialCapacity, int maxCa

if (directArena != null) {

if (initialCapacity > directArena.chunkSize) {
if (initialCapacity > directArena.sizeClass.chunkSize) {
// This is beyond chunk size so we'll allocate separately.
ByteBuf buf = UnpooledByteBufAllocator.DEFAULT
.directBuffer(initialCapacity, maxCapacity);
Expand Down

0 comments on commit 7706c60

Please sign in to comment.