On Fri, 8 Aug 2025 16:04:44 GMT, Roger Riggs <rri...@openjdk.org> wrote:
>> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update copyright year > > src/java.base/share/classes/jdk/internal/foreign/AbstractMemorySegmentImpl.java > line 266: > >> 264: >> 265: // The below computation is a branchless equivalent to >> 266: // `return (thisStart < thatEnd && thisEnd > >> thatStart)?1:0;`. Here is how: > > It would be pretty cool if C2 could do the optimization of branch-less > computations like these. Yes. My thought as well. I will make some inquiries. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/26672#discussion_r2265780689