RFR: 8321971: Improve the user name detection logic in perfMemory get_user_name_slow [v2]
Jaikiran Pai
jpai at openjdk.org
Mon Dec 18 10:26:39 UTC 2023
On Mon, 18 Dec 2023 09:55:30 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
>> Jaikiran Pai has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - David's review comments - reduce if blocks and release the array outside if block
>> - David's review comment - punctuation
>
> src/hotspot/os/posix/perfMemory_posix.cpp line 447:
>
>> 445:
>> 446: return name;
>> 447: }
>
> This drops the `snprintf` return value which indicates if an error has occurred, can this be remediated?
Hello Johan, I'll take a look at the code if there are other places where this is happening. Since this is existing code (not added by this PR), if there are too many other unrelated places where this is happening then I'll create a separate issue to address it. Otherwise, I'll do it in this PR itself. Thank you for catching this.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17104#discussion_r1429868521
More information about the hotspot-runtime-dev
mailing list