RFR: 8365940: Misleading macro in jvm_md.h:57

Matias Saavedra Silva matsaave at openjdk.org
Wed Oct 29 19:35:42 UTC 2025


The macro `JVM_MAXPATHLEN` should expand to the result of `MAXPATHLEN + 1` as the original result may lead to a different value when using the macro as part of an expression. Verified with tier 1-5 tests.

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

Commit messages:
 - 8365940: Misleading macro in jvm_md.h:57

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

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


More information about the hotspot-runtime-dev mailing list