RFR: 8365017: The SegmentBulkOperations::copy method can be improved using overlaps [v2]

Mikhail Yankelevich myankelevich at openjdk.org
Fri Aug 8 11:30:12 UTC 2025


On Fri, 8 Aug 2025 09:36:14 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR proposes to use overlapping memory areas in `SegmentBulkOperations::copy`, similar to what is proposed for `SegmentBulkOperations::fill` in https://github.com/openjdk/jdk/pull/25383.
>> 
>> This PR passes `tier1`, `tier2`, and `tier3`testing on multiple platforms.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Optimize copy for certain lengths

test/micro/org/openjdk/bench/java/lang/foreign/SegmentBulkCopy.java line 49:

> 47: @State(Scope.Thread)
> 48: @OutputTimeUnit(TimeUnit.NANOSECONDS)
> 49: @Fork(value = 3)

Nit: could you please update the copyright

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26672#discussion_r2262693639


More information about the core-libs-dev mailing list