Skip to content

Commit

Permalink
add align buf allocator in memory project
Browse files Browse the repository at this point in the history
  • Loading branch information
kiril-me committed Jan 26, 2017
1 parent 576447c commit 8d4f9d5
Show file tree
Hide file tree
Showing 6 changed files with 516 additions and 474 deletions.
9 changes: 0 additions & 9 deletions java/memory/src/main/java/io/netty/buffer/AlignPoolArena.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@ protected AlignPoolArena(AlignPooledByteBufAllocator parent, int pageSize,
this.memoryMask = offset - 1;
}

//
// protected AlignPoolArena(PooledByteBufAllocator parent, int pageSize,
// int maxOrder, int pageShifts, int chunkSize, int offset) {
// super(parent, pageSize, maxOrder, pageShifts, chunkSize);
//
// this.memoryAligned = offset;
// this.memoryMask = offset - 1;
// }

@Override
int normalizeCapacity(int reqCapacity) {
int newCapacity = super.normalizeCapacity(reqCapacity);
Expand Down
Loading

0 comments on commit 8d4f9d5

Please sign in to comment.