[lworld] RFR: [lworld] jcmd VM.class_print_layout crash due to NULL cld name
Tobias Hartmann
thartmann at openjdk.java.net
Mon Mar 1 12:50:01 UTC 2021
On Mon, 1 Mar 2021 11:46:07 GMT, Yi Yang <github.com+5010047+kelthuzadx at openjdk.org> wrote:
>> Hi, can I have a review of this one-line fix?
>>
>> jcmd VM.class_print_layout crashes when printing classes which loaded by bootstrap loader since these classes has NULL class_loder_data()->name().
>>
>> But actually, I wonder to know why we don't print the layout by modifications of existing functions in FieldLayoutBuilder::build_layout directly? It seems FieldLayoutBuilder can gather more complete layout information.
>>
>> Thanks,
>> Yang
>
> Since I don't have a JBS account, I can not file an issue on that, can anyone help to create an issue, much appreciated.:-)
>
> Thanks,
> Yang
Hi Yang, thanks for the report! I've filed https://bugs.openjdk.java.net/browse/JDK-8262746
-------------
PR: https://git.openjdk.java.net/valhalla/pull/354
More information about the valhalla-dev
mailing list