RFR: 8319242: HotSpot Style Guide should discourage non-local variables with non-trivial initialization or destruction [v2]
David Holmes
dholmes at openjdk.org
Wed Jun 18 04:06:32 UTC 2025
On Tue, 17 Jun 2025 16:52:54 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
>> Sorry but I'm having trouble understanding how somehow could evaluate whether a dynamic initialization is okay based on the current statement.
>
> Does the initialization modify some other global state? Or does it depend on
> some other global state that might not be knowable yet? Avoid those.
Okay I think I get what you are saying.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25812#discussion_r2153589657
More information about the hotspot-dev
mailing list