On Mon, 25 Nov 2024 19:55:46 GMT, Brian Burkhalter <b...@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

Reply via email to