RFR: 8287647: VM debug support: find node by pattern in name or dump [v3]

Emanuel Peter epeter at openjdk.java.net
Tue Jun 14 07:19:50 UTC 2022


On Mon, 13 Jun 2022 11:24:50 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> src/hotspot/share/opto/node.cpp line 1712:
>> 
>>> 1710:       strncpy(buf, r, r_part_len);
>>> 1711:       buf[r_part_len] = '\0'; // end of string
>>> 1712:       r_part = &buf[0]; // cast array to char*
>> 
>> Suggestion:
>> 
>>       r_part = buf;
>
> checking if I can do that, remember I had some issues with a platform.

Tests passed fine, so I will do as you suggested. Thanks for the feedback.

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

PR: https://git.openjdk.org/jdk/pull/8988


More information about the hotspot-compiler-dev mailing list