RFR: 8357531: The `SegmentBulkOperations::fill` method can be improved using overlaps [v2]

Shaojin Wen swen at openjdk.org
Thu May 22 08:25:52 UTC 2025


On Thu, 22 May 2025 08:14:35 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> 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. The number of branches to evaluate is reduced.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Correct typo in comment

Here you can use putShort/putInt/putLong to replace putShortUnaligned/putIntUnaligned/putLongUnaligned

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

PR Comment: https://git.openjdk.org/jdk/pull/25383#issuecomment-2900343335


More information about the core-libs-dev mailing list