Integrated: 8347143: [aix] Fix strdup use in os::dll_load

Joachim Kern jkern at openjdk.org
Tue Jan 14 15:42:50 UTC 2025


On Mon, 13 Jan 2025 15:21:43 GMT, Joachim Kern <jkern at openjdk.org> wrote:

> The use of strdup (which is os::strdup because of context) in aix's os::dll_load is odd. The result is nearly unused (it's passed to strrchr, but the original filename could be used instead), so the duplication doesn't seem needed. And the duplicate is free'd using FREE_C_HEAP_ARRAY, which seems wrong.

This pull request has now been integrated.

Changeset: d5320197
Author:    Joachim Kern <jkern at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d5320197995bbd4423e660c61a4677428e70819c
Stats:     17 lines in 1 file changed: 7 ins; 4 del; 6 mod

8347143: [aix] Fix strdup use in os::dll_load

Reviewed-by: mdoerr, clanger, kbarrett

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

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


More information about the hotspot-runtime-dev mailing list