RFR: JDK-8312078 : [PPC] JcmdScale.java Failing on AIX [v2]
Thomas Stuefe
stuefe at openjdk.org
Wed Aug 2 06:15:52 UTC 2023
On Sat, 29 Jul 2023 19:53:42 GMT, Deepa Kumari <duke at openjdk.org> wrote:
>> On AIX, NMT/JcmdScale.java fails with: java.lang.RuntimeException: 'Incorrect scale value: (null)' missing from stdout/stderr.
>>
>> Upon analysis the test on Linux and AIX, When a null pointer is passed to the **%s** format specifier, Linux's printf implementation interprets it as an empty string, resulting in the output **(null)**. However, on AIX , the implementation does not interpret it as an empty string. It may handle the null pointer differently, potentially by ignoring it and producing no output at all.
>>
>>
>> JBS Issue : [JDK-8312078](https://bugs.openjdk.org/browse/JDK-8312078)
>
> Deepa Kumari has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
>
> - 8312078 : [PPC] JcmdScale.java Failing on AIX
> - Passed (null) to scale vale
Good catch. It may actually segfault on any platform, the fact that most libcs handle this gracefully is just luck.
-------------
Marked as reviewed by stuefe (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14935#pullrequestreview-1558269533
More information about the hotspot-runtime-dev
mailing list