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 — Try not using direct memory? · netty/netty@62a3fd2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • buffer/src/test/java/io/netty/buffer
    • AdaptiveByteBufAllocatorTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎buffer/src/test/java/io/netty/buffer/AdaptiveByteBufAllocatorTest.java‎

Copy file name to clipboardExpand all lines: buffer/src/test/java/io/netty/buffer/AdaptiveByteBufAllocatorTest.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void concurrentBufferAllocateAndGrowth(RepetitionInfo info) throws Exception {
298298
bufSizeGrowth = 1024;
299299
}
300300

301-
AdaptiveByteBufAllocator allocator = newAllocator(true);
301+
AdaptiveByteBufAllocator allocator = newAllocator(false);
302302
int threadCount = 20;
303303
CountDownLatch startLatch = new CountDownLatch(1);
304304
List<Future<Void>> futures = new ArrayList<>();
@@ -311,7 +311,7 @@ void concurrentBufferAllocateAndGrowth(RepetitionInfo info) throws Exception {
311311
// Allocate buffers in various sizes.
312312
// In the BuddyChunk, we'll exercise different buddy tree levels.
313313
int initialSize = bufSizeBase + rng.nextInt(bufSizeAdditional);
314-
ByteBuf buf = allocator.directBuffer(initialSize);
314+
ByteBuf buf = allocator.heapBuffer(initialSize);
315315
try {
316316
// Grow the buffer, which will allocate more space, and deallocate the old space.
317317
int growth = rng.nextInt(bufSizeGrowth);

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.