From dd2aba98f500531130b9dfccd4a4ad6555f1ea5c Mon Sep 17 00:00:00 2001
From: Kim Barrett
Date: Wed, 14 May 2025 00:50:38 +0000
Subject: [PATCH] 8356689: Make HotSpot Style Guide change process more
prominent
Reviewed-by: dholmes, shade, stefank, kvn
---
doc/hotspot-style.html | 38 ++++++++++++++++++++------------------
doc/hotspot-style.md | 36 +++++++++++++++++++-----------------
2 files changed, 39 insertions(+), 35 deletions(-)
diff --git a/doc/hotspot-style.html b/doc/hotspot-style.html
index 7e7f4de3629..d4c06fbd6bd 100644
--- a/doc/hotspot-style.html
+++ b/doc/hotspot-style.html
@@ -32,11 +32,12 @@
- Introduction
- Structure and Formatting
@@ -99,6 +100,21 @@ writing HotSpot code. Following these will help new code fit in with
existing HotSpot code, making it easier to read and maintain. Failure to
follow these guidelines may lead to discussion during code reviews, if
not outright rejection of a change.
+Changing this Document
+Proposed changes should be discussed on the HotSpot Developers mailing
+list. Changes are likely to be cautious and incremental, since HotSpot
+coders have been using these guidelines for years.
+Substantive changes are approved by rough consensus
+of the HotSpot Group
+Members. The Group Lead determines whether consensus has been
+reached.
+Editorial changes (changes that only affect the description of
+HotSpot style, not its substance) do not require the full consensus
+gathering process. The normal HotSpot pull request process may be used
+for editorial changes, with the additional requirement that the
+requisite reviewers are also HotSpot Group Members.
Why Care About Style?
Some programmers seem to have lexers and even C preprocessors
installed directly behind their eyeballs. The rest of us require code
@@ -124,7 +140,7 @@ conforms locally to its own peculiar conventions, it is not worth
reformatting the whole thing. Also consider separating changes that make
extensive stylistic updates from those which make functional
changes.
-Counterexamples and Updates
+Counterexamples
Many of the guidelines mentioned here have (sometimes widespread)
counterexamples in the HotSpot code base. Finding a counterexample is
not sufficient justification for new code to follow the counterexample
@@ -137,20 +153,6 @@ bring it up for discussion and possible change. The architectural rule,
of course, is "When in Rome do as the Romans". Sometimes in the suburbs
of Rome the rules are a little different; these differences can be
pointed out here.
-Proposed changes should be discussed on the HotSpot Developers mailing
-list. Changes are likely to be cautious and incremental, since HotSpot
-coders have been using these guidelines for years.
-Substantive changes are approved by rough consensus
-of the HotSpot Group
-Members. The Group Lead determines whether consensus has been
-reached.
-Editorial changes (changes that only affect the description of
-HotSpot style, not its substance) do not require the full consensus
-gathering process. The normal HotSpot pull request process may be used
-for editorial changes, with the additional requirement that the
-requisite reviewers are also HotSpot Group Members.
Factoring and Class Design
diff --git a/doc/hotspot-style.md b/doc/hotspot-style.md
index 0a135b2074c..f4348bea51d 100644
--- a/doc/hotspot-style.md
+++ b/doc/hotspot-style.md
@@ -8,6 +8,24 @@ HotSpot code, making it easier to read and maintain. Failure to
follow these guidelines may lead to discussion during code reviews, if
not outright rejection of a change.
+### Changing this Document
+
+Proposed changes should be discussed on the
+[HotSpot Developers](mailto:hotspot-dev@openjdk.org) mailing
+list. Changes are likely to be cautious and incremental, since HotSpot
+coders have been using these guidelines for years.
+
+Substantive changes are approved by
+[rough consensus](https://www.rfc-editor.org/rfc/rfc7282.html) of
+the [HotSpot Group](https://openjdk.org/census#hotspot) Members.
+The Group Lead determines whether consensus has been reached.
+
+Editorial changes (changes that only affect the description of HotSpot
+style, not its substance) do not require the full consensus gathering
+process. The normal HotSpot pull request process may be used for
+editorial changes, with the additional requirement that the requisite
+reviewers are also HotSpot Group Members.
+
### Why Care About Style?
Some programmers seem to have lexers and even C preprocessors
@@ -38,7 +56,7 @@ reformatting the whole thing. Also consider separating changes that
make extensive stylistic updates from those which make functional
changes.
-### Counterexamples and Updates
+### Counterexamples
Many of the guidelines mentioned here have (sometimes widespread)
counterexamples in the HotSpot code base. Finding a counterexample is
@@ -54,22 +72,6 @@ rule, of course, is "When in Rome do as the Romans". Sometimes in the
suburbs of Rome the rules are a little different; these differences
can be pointed out here.
-Proposed changes should be discussed on the
-[HotSpot Developers](mailto:hotspot-dev@openjdk.org) mailing
-list. Changes are likely to be cautious and incremental, since HotSpot
-coders have been using these guidelines for years.
-
-Substantive changes are approved by
-[rough consensus](https://www.rfc-editor.org/rfc/rfc7282.html) of
-the [HotSpot Group](https://openjdk.org/census#hotspot) Members.
-The Group Lead determines whether consensus has been reached.
-
-Editorial changes (changes that only affect the description of HotSpot
-style, not its substance) do not require the full consensus gathering
-process. The normal HotSpot pull request process may be used for
-editorial changes, with the additional requirement that the requisite
-reviewers are also HotSpot Group Members.
-
## Structure and Formatting
### Factoring and Class Design