RFR: JDK-8312078 : [PPC] JcmdScale.java Failing on AIX

Deepa Kumari duke at openjdk.org
Mon Jul 24 09:27:15 UTC 2023


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)

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

Commit messages:
 - Removed changes from JcmdScale file
 - 8312078 : [PPC] JcmdScale.java Failing on AIX
 - Passed (null) to scale vale

Changes: https://git.openjdk.org/jdk/pull/14935/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14935&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8312078
  Stats: 8 lines in 1 file changed: 8 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/14935.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14935/head:pull/14935

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


More information about the hotspot-runtime-dev mailing list