RFR: 8293691: converting a defined BasicType value to a string should not crash the VM
Dean Long
dlong at openjdk.org
Tue Sep 27 18:13:20 UTC 2022
On Tue, 27 Sep 2022 11:21:40 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
> Hi,
>
> This implements Kim's suggested fix for this ticket.
src/hotspot/share/utilities/globalDefinitions.cpp line 240:
> 238: };
> 239: const char* type2name(BasicType t) {
> 240: if (t < (T_CONFLICT + 1)) {
Suggestion:
if (t < ARRAY_SIZE(type2name_tab)) {
-------------
PR: https://git.openjdk.org/jdk/pull/10447
More information about the hotspot-dev
mailing list