JDK-8339782 : java/nio/channels/FileChannel/TempDirectBuffersReclamation.java failed AssertionError: Direct BufferPool not same before thread activity and after thread exit.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • CPU: x86_64
  • Submitted: 2024-09-09
  • Updated: 2024-09-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Description
The following test failed in the JDK24 CI:

java/nio/channels/FileChannel/TempDirectBuffersReclamation.java

Here's a snippet from the log file:

#section:main
----------messages:(7/327)----------
command: main TempDirectBuffersReclamation
reason: User specified action: run main/othervm TempDirectBuffersReclamation 
started: Mon Sep 09 07:26:27 UTC 2024
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.management
finished: Mon Sep 09 07:26:27 UTC 2024
elapsed time (seconds): 0.537
----------configuration:(3/43)----------
Boot Layer
  add modules: java.management

----------System.out:(0/0)----------
----------System.err:(17/1044)----------
java.lang.AssertionError: Direct BufferPool not same before thread activity and after thread exit.
Before: # of buffers: 0, memory used: 0
 After: # of buffers: 1, memory used: 6014

	at TempDirectBuffersReclamation.main(TempDirectBuffersReclamation.java:71)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:573)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1575)

JavaTest Message: Test threw exception: java.lang.AssertionError: Direct BufferPool not same before thread activity and after thread exit.
Before: # of buffers: 0, memory used: 0
 After: # of buffers: 1, memory used: 6014

JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.AssertionError: Direct BufferPool not same before thread activity and after thread exit. Before: # of buffers: 0, memory used: 0 After: # of buffers: 1, memory used: 6014
----------rerun:(41/7130)*----------