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 06:55:52 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Anton Artemov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8354969: Added usecases for strdup in resource area
>
> src/hotspot/share/memory/allocation.hpp line 551:
>
>> 549:
>> 550: #define RESOURCE_STRDUP(src)\
>> 551: resource_strdup((char*)src)
>
> Why the `char*` cast when the parameter is expected to be a `const char*`?
Macros removed in the latest commit.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24998#discussion_r2091105942
More information about the hotspot-dev
mailing list