RFR: 8344882: (bf) Temporary direct buffers should not count against the upper limit on direct buffer memory [v4]
Alan Bateman
alanb at openjdk.org
Tue Nov 26 06:57:42 UTC 2024
On Mon, 25 Nov 2024 19:55:46 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Make the memory used by internal temporary direct buffers not count towards the upper limit on direct buffer memory.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8344882: Remove vestigial import of Stable annotation
I think you can simplify this more by allocating with Unsafe and use the DirectByteBuffer(int, long) constructor. That would avoid needing the DBB code to know anything about temporary buffers and also means the allocate/free with using Unsafe in one place rather than assume that DirectByteBuffer uses Unsafe. The SharedSecrets would change to newDirectBuffer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22339#issuecomment-2499805511
More information about the core-libs-dev
mailing list