RFR: 8354954: Typed static memory for late initialization of static class members in Hotspot [v9]

Johan Sjölen jsjolen at openjdk.org
Tue Apr 29 05:52:48 UTC 2025


On Mon, 28 Apr 2025 17:36:13 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> > @kimbarrett,
> > I've applied all of your comments, except the `get()` rename. To me, both `ptr` and `get` is fine. We can take the rename just to make it more obviously pronuncable.
> 
> Looks like the rename to `get()` happened after all?
> 

Yeah, I thought about it and applied the change after posting the comment :). Or maybe I just forgot to update the comment!

> > Regarding tooling: I use `clangd` as my LSP server, so clang provides my IDE capabilities. It has no problem with figuring out the T and using it after a `get()` or `->`.
> 
> I'm not sure what this is in response to? Maybe to a comment from someone else?

Sorry, this wasn't in response to anything you said. I wanted this to be part of the record of the PR, as I know folks are generally wary of how templates affect their IDEs capability to analyze the code.

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

PR Comment: https://git.openjdk.org/jdk/pull/24689#issuecomment-2837532486


More information about the hotspot-dev mailing list