On Tue, 18 Nov 2025 16:54:41 GMT, Maurizio Cimadamore <[email protected]> 
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

Reply via email to