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

David Holmes dholmes at openjdk.org
Thu May 15 06:59:56 UTC 2025


On Thu, 15 May 2025 06:54:04 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 554:
> 
>> 552: 
>> 553: #define RESOURCE_STRDUP_IN_THREAD(thread, src)\
>> 554:   resource_strdup(thread, (char*)src)
> 
> Why the macros? I expected to see `ResourceObj::strdup` similar to `os::strdup`.

Or `ResourceAraa::strdup`

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

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


More information about the hotspot-dev mailing list