Integrated: 8354453: Don't strcpy in os::strdup, use memcpy instead

Anton Artemov duke at openjdk.org
Mon Apr 28 12:15:52 UTC 2025


On Tue, 15 Apr 2025 07:37:54 GMT, Anton Artemov <duke at openjdk.org> wrote:

> Use memcpy instead of strcpy in os::strdup, 1 string pass fewer.
> 
> Tested in tiers 1-3, all tests pass.

This pull request has now been integrated.

Changeset: a7359a50
Author:    Anton Artemov <anton.artemov at oracle.com>
Committer: Johan Sjölen <jsjolen at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a7359a5091e7ed911cc0505235eee6dee6d44919
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8354453: Don't strcpy in os::strdup, use memcpy instead

Reviewed-by: jsjolen, kbarrett

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

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


More information about the hotspot-runtime-dev mailing list