RFR: 8357531: The `SegmentBulkOperations::fill` method can be improved using overlaps
Per Minborg
pminborg at openjdk.org
Thu May 22 07:46:02 UTC 2025
This PR builds on a concept John Rose told me about some time ago. Instead of combining memory operations of various sizes, a single large and skewed memory operation can be made to clean up the tail of remaining bytes.
This has the effect of simplifying and shortening the code while improving performance. The number of branches to evaluate is reduced.
-------------
Commit messages:
- Simplify the fill method
Changes: https://git.openjdk.org/jdk/pull/25383/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25383&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8357531
Stats: 59 lines in 1 file changed: 26 ins; 15 del; 18 mod
Patch: https://git.openjdk.org/jdk/pull/25383.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25383/head:pull/25383
PR: https://git.openjdk.org/jdk/pull/25383
More information about the core-libs-dev
mailing list