On Sat, 23 Nov 2024 01:03:25 GMT, ExE Boss <d...@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

Reply via email to