RFR: 8256256: UL should not use heap allocation for output string [v2]
David Holmes
david.holmes at oracle.com
Wed Dec 2 02:12:16 UTC 2020
On 2/12/2020 9:00 am, Ioi Lam wrote:
> On Tue, 1 Dec 2020 05:30:01 GMT, Yumin Qi <minqi at openjdk.org> wrote:
>
>>> The calloc query has not been addressed.
>>
>> malloc/calloc return void* so need this cast.
>
> calloc zero-fills the buffer. See https://en.cppreference.com/w/c/memory/calloc
Yes and the question was "why does it need to be zeroed?".
David
> -------------
>
> PR: https://git.openjdk.java.net/jdk/pull/1246
>
More information about the hotspot-runtime-dev
mailing list