RFR: 8256256: UL should not use heap allocation for output string [v2]

Ioi Lam iklam at openjdk.java.net
Tue Dec 1 23:00:56 UTC 2020


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

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

PR: https://git.openjdk.java.net/jdk/pull/1246


More information about the hotspot-runtime-dev mailing list