RFR: 8354969: Add strdup function for ResourceArea [v3]

Anton Artemov duke at openjdk.org
Thu May 15 12:55:53 UTC 2025


On Thu, 15 May 2025 07:26:13 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

>> Or `ResourceAraa::strdup`
>
> I think the macros are just to imitate what was there previously, but I agree with David. It's better to not have these as macros, and prefer ordinary methods/functions.

That is correct, I used macros to mimic what existed. I re-organized the code into static methods in ResourceArea as suggested by David.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24998#discussion_r2091105322


More information about the hotspot-dev mailing list