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

Kim Barrett kbarrett at openjdk.org
Sat Nov 1 00:16:02 UTC 2025


On Wed, 29 Oct 2025 19:27:29 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:

> 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.

I'm approving this change, since it's clearly correct. Treat my earlier
comment as a suggestion for further work. I've even filed an issue for it:
https://bugs.openjdk.org/browse/JDK-8371082

Marked as reviewed by kbarrett (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/28049#pullrequestreview-3406658462
PR Review: https://git.openjdk.org/jdk/pull/28049#pullrequestreview-3406658733


More information about the hotspot-runtime-dev mailing list