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: Run the Linux test legs on ubuntu-24.04 so io_uring bu… · netty/netty@b8d6495

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci-build.yml
    • ci-pr.yml
  • transport-native-io_uring/src/test/java/io/netty/channel/uring
    • IoUringBufferRingTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci-build.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-build.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ concurrency:
3939

4040
jobs:
4141
build:
42-
runs-on: ubuntu-22.04
42+
runs-on: ubuntu-24.04
4343
strategy:
4444
matrix:
4545
include:
Collapse file

‎.github/workflows/ci-pr.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-pr.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204
JAVA_HOME=/usr/lib/jvm/zulu25 ./mvnw -B -ntp -pl testsuite-native -am clean package -Pboringssl -DskipTests=true -Dcheckstyle.skip=true -DskipNativeTestsuite=false -Dtcnative.classifier=
205205
206206
build-pr:
207-
runs-on: ubuntu-22.04
207+
runs-on: ubuntu-24.04
208208
strategy:
209209
fail-fast: false
210210
matrix:
Collapse file

‎transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringBufferRingTest.java‎

Copy file name to clipboardExpand all lines: transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringBufferRingTest.java
+8-7Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,14 @@ public void testUseBufferClampsReadLargerThanEntryCapacity() throws Exception {
266266
assumeThat(ioUringBufRingAddr)
267267
.as("ioUringSetupBufRing result must be greater than 0, but now result is %d", ioUringBufRingAddr)
268268
.isGreaterThan(0);
269+
IoUringBufferRing bufferRing = new IoUringBufferRing(ringFd,
270+
Buffer.wrapMemoryAddressWithNativeOrder(ioUringBufRingAddr, Native.ioUringBufRingSize(entries)),
271+
entries, 2, (short) 1, false,
272+
new IoUringFixedBufferRingAllocator(entrySize), false);
273+
bufferRing.initialize();
274+
// close() unregisters the ring and releases the buffers it still owns; unregistering by hand
275+
// leaks every entry that initialize() filled but the test did not use.
269276
try {
270-
IoUringBufferRing bufferRing = new IoUringBufferRing(ringFd,
271-
Buffer.wrapMemoryAddressWithNativeOrder(ioUringBufRingAddr, Native.ioUringBufRingSize(entries)),
272-
entries, 2, (short) 1, false,
273-
new IoUringFixedBufferRingAllocator(entrySize), false);
274-
bufferRing.initialize();
275-
276277
int bundleTotal = entrySize * 2 + 1;
277278
ByteBuf buffer = bufferRing.useBuffer((short) 0, bundleTotal, true);
278279
try {
@@ -281,7 +282,7 @@ public void testUseBufferClampsReadLargerThanEntryCapacity() throws Exception {
281282
buffer.release();
282283
}
283284
} finally {
284-
Native.ioUringUnRegisterBufRing(ringFd, ioUringBufRingAddr, entries, (short) 1);
285+
bufferRing.close();
285286
}
286287
} finally {
287288
ringBuffer.close();

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.