RFR: 8343188: Investigate ways to simplify MemorySegment::ofBuffer [v3]

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Oct 31 13:44:31 UTC 2024


On Thu, 31 Oct 2024 12:56:54 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR proposes to improve `MemorySegment::ofBuffer` making it more amenable to inlining and generally improving performance.
>> 
>> Testing successfully on tier1-3
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix issue in scaleFactor()

Changes look good (I'd still prefer for the names of the new methods to change, but I'll leave this to you)

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

Marked as reviewed by mcimadamore (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/21764#pullrequestreview-2408019844


More information about the core-libs-dev mailing list