RFR: 8319242: HotSpot Style Guide should discourage non-local variables with non-trivial initialization or destruction [v2]

Kim Barrett kbarrett at openjdk.org
Mon Jun 16 12:04:12 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.

Kim Barrett has updated the pull request incrementally with one additional commit since the last revision:

  better terminology, merge separate sections

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25812/files
  - new: https://git.openjdk.org/jdk/pull/25812/files/5e15166a..878cbfbd

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25812&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25812&range=00-01

  Stats: 39 lines in 2 files changed: 17 ins; 13 del; 9 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 hotspot-dev mailing list