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 — Address Norman's comments · netty/netty@d921c93

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • buffer/src/main/java/io/netty/buffer
    • AdaptivePoolingAllocator.java
Expand file treeCollapse file tree
Open diff view settings
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
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,10 +1399,8 @@ private void updateStateOnLocalReleaseSegment(int previousLocalSize, IntStack lo
13991399
private void deallocateIfNeeded(int localSize) {
14001400
// Check if all segments have been returned.
14011401
int totalFreeSegments = localSize + externalFreeList.size();
1402-
if (totalFreeSegments == segments) {
1403-
if (STATE.compareAndSet(this, localSize, DEALLOCATED)) {
1404-
deallocate();
1405-
}
1402+
if (totalFreeSegments == segments && STATE.compareAndSet(this, localSize, DEALLOCATED)) {
1403+
deallocate();
14061404
}
14071405
}
14081406

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.