GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Auto-port 5.0: Fix IllegalReferenceCountException in AdaptiveByteBuf.… · netty/netty@0e1bf16

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • buffer/src/main/java/io/netty/buffer
    • AbstractBufferEvent.java
    • AbstractByteBuf.java
    • AdaptivePoolingAllocator.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎buffer/src/main/java/io/netty/buffer/AbstractBufferEvent.java‎

Copy file name to clipboardExpand all lines: buffer/src/main/java/io/netty/buffer/AbstractBufferEvent.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void fill(AbstractByteBuf buf, Class<? extends AbstractByteBufAllocator>
4141
size = buf.capacity();
4242
maxFastCapacity = buf.maxFastWritableBytes() + buf.writerIndex();
4343
maxCapacity = buf.maxCapacity();
44-
direct = buf.isDirect();
44+
direct = buf._isDirect();
4545
address = buf._memoryAddress();
4646
}
4747
}
Collapse file

‎buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java‎

Copy file name to clipboardExpand all lines: buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,10 @@ long _memoryAddress() {
14971497
return isAccessible() && hasMemoryAddress() ? memoryAddress() : 0L;
14981498
}
14991499

1500+
boolean _isDirect() {
1501+
return isDirect();
1502+
}
1503+
15001504
ByteBuffer _internalNioBuffer() {
15011505
return internalNioBuffer(0, capacity());
15021506
}
Collapse file

‎buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java‎

Copy file name to clipboardExpand all lines: buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,12 @@ long _memoryAddress() {
17471747
return root != null ? root._memoryAddress() + startIndex : 0L;
17481748
}
17491749

1750+
@Override
1751+
boolean _isDirect() {
1752+
AbstractByteBuf root = rootParent;
1753+
return root != null && root.isDirect();
1754+
}
1755+
17501756
@Override
17511757
public ByteBuffer nioBuffer(int index, int length) {
17521758
checkIndex(index, length);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.