RFR (S): 8230395: Code checks for NULL value returned from NEW_C_HEAP_ARRAY which can not happen

Tobias Hartmann tobias.hartmann at oracle.com
Mon Sep 23 07:22:02 UTC 2019


Hi David,

On 23.09.19 09:11, David Holmes wrote:
> I don't think so (not that I changed it). The returned pointer is to malloc'd space so not a pointer
> to a "const char". The local variable is itself a const pointer because we never change it - not
> that that is significant in any way in this code.

Right, got confused because we return a "const char*".

Thanks,
Tobias


More information about the hotspot-compiler-dev mailing list