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

ExE Boss duke at openjdk.org
Sat Nov 23 01:07:14 UTC 2024


On Fri, 22 Nov 2024 23:44:11 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.

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`?

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

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


More information about the core-libs-dev mailing list