Integrated: 8345181: (ch) Windows asynchronous channels may return temporary direct buffers to the buffer cache twice (win)

Brian Burkhalter bpb at openjdk.org
Wed Dec 4 21:02:47 UTC 2024


On Wed, 4 Dec 2024 18:36:40 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Due to operations on different threads, the Windows asynchronous channels might try to return the same buffer to the temporary direct buffer cache twice resulting in an attempt to free the same address more than once. This was not a problem before #22339 was integrated, as previously a cleaner had been used to free temporary buffers, and the cleaner did not permit duplicative freeing of the same memory. This change introduces checks in the Windows asynchronous channels to prevent duplicative returns of a buffer to the cache.

This pull request has now been integrated.

Changeset: ea73e058
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ea73e058521dd3139b54aa4e2af474c87ecffa5b
Stats:     36 lines in 2 files changed: 26 ins; 2 del; 8 mod

8345181: (ch) Windows asynchronous channels may return temporary direct buffers to the buffer cache twice (win)

Reviewed-by: alanb, michaelm

-------------

PR: https://git.openjdk.org/jdk/pull/22554


More information about the nio-dev mailing list