RFR: 8370822: Improve performance for MemorySegment::fill

Igor Rudenko duke at openjdk.org
Wed Oct 29 00:29:16 UTC 2025


The manual byte-replication expression replaced with the multiplicative expansion trick - a more compact and efficient equivalent.

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

Commit messages:
 - 8370822: Improve performance for MemorySegment::fill

Changes: https://git.openjdk.org/jdk/pull/28031/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28031&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8370822
  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/28031.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28031/head:pull/28031

PR: https://git.openjdk.org/jdk/pull/28031


More information about the core-libs-dev mailing list