RFR: 8344882: (bf) Temporary direct buffers should not count against the upper limit on direct buffer memory

Brian Burkhalter bpb at openjdk.org
Sat Nov 23 01:12:27 UTC 2024


On Sat, 23 Nov 2024 01:03:25 GMT, ExE Boss <duke at openjdk.org> wrote:

>> Make the memory used by internal temporary direct buffers not count towards the upper limit on direct buffer memory.
>
> src/java.base/share/classes/java/nio/Direct-X-Buffer.java.template line 77:
> 
>> 75:     static final boolean UNALIGNED = Bits.unaligned();
>> 76: 
>> 77:     private @Stable boolean temporary; // defaults to false
> 
> Any reason this is `@Stable` instead of `final`?

I think it avoids setting it to `false` when it is not `true`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22339#discussion_r1854959764


More information about the core-libs-dev mailing list