RFR: 8365017: The SegmentBulkOperations::copy method can be improved using overlaps [v4]
Per Minborg
pminborg at openjdk.org
Mon Aug 11 06:20:16 UTC 2025
On Fri, 8 Aug 2025 16:04:44 GMT, Roger Riggs <rriggs at 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
More information about the core-libs-dev
mailing list