RFR: 8354969: Add strdup function for ResourceArea
David Holmes
dholmes at openjdk.org
Fri May 9 01:02:02 UTC 2025
On Fri, 2 May 2025 09:56:32 GMT, Anton Artemov <duke at openjdk.org> wrote:
> Added a strdup() method, as requested by the bug reporter. The method is added to Arena, but also available in ResourceArea, as requested. A test for the method is provided.
>
> Testing: tiers 1-3 on multiple platforms.
Do we have any immediate candidate uses for this? Whilst in the past Hotspot code had a number of utility API's, these days there is a tendency to delete any unused code. So this really needs to have an imminent usage (@iklam ?) .
Code change itself looks fine. Thanks
-------------
Marked as reviewed by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24998#pullrequestreview-2826685566
More information about the hotspot-dev
mailing list