RFR: 8354453: Don't strcpy in os::strdup, use memcpy instead [v2]

Anton Artemov duke at openjdk.org
Thu Apr 24 08:42:40 UTC 2025


> Use memcpy instead of strcpy in os::strdup, 1 string pass fewer.

Anton Artemov has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge remote-tracking branch 'origin/master' into JDK-8354453
 - 8354453: Don't strcpy in os::strdup, use memcpy instead

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24651/files
  - new: https://git.openjdk.org/jdk/pull/24651/files/5e3e71de..80f2a7ea

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24651&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24651&range=00-01

  Stats: 217882 lines in 1303 files changed: 42171 ins; 172732 del; 2979 mod
  Patch: https://git.openjdk.org/jdk/pull/24651.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24651/head:pull/24651

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


More information about the hotspot-runtime-dev mailing list