RFR: 8319242: HotSpot Style Guide should discourage non-local variables with non-trivial initialization or destruction
Kim Barrett
kbarrett at openjdk.org
Sun Jun 15 05:21:29 UTC 2025
Please review this change to the HotSpot Style Guide to add discussion of how
we prefer to handle initialization and destruction of non-local variables.
I propose this is an editorial change, as it just documents current practice
rather than suggesting a change to current practice. As such, the normal
HotSpot PR process applies.
The updated .html file was generated using make update-build-docs.
-------------
Commit messages:
- static variable inits
Changes: https://git.openjdk.org/jdk/pull/25812/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25812&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8319242
Stats: 39 lines in 2 files changed: 39 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/25812.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25812/head:pull/25812
PR: https://git.openjdk.org/jdk/pull/25812
More information about the build-dev
mailing list