RFR: 8346657: Improve out of bounds exception messages for MemorySegments [v9]
Jorn Vernee
jvernee at openjdk.org
Tue Nov 18 17:27:59 UTC 2025
On Tue, 18 Nov 2025 16:54:41 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> It would be better if Preconditions had more primitive, non-throwing variants which just returned true/false.
Currently the `checkIndex` method is an intrinsic that produces a corresponding `RangeCheckNode`, so I guess we can't really expect the same performance if we add our own version of this API. I think we'd need to involve the compiler team in this.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28124#issuecomment-3548761225
More information about the core-libs-dev
mailing list