RFR: 8322475: Extend printing for System.map [v5]

Thomas Stuefe stuefe at openjdk.org
Thu Jun 20 09:11:12 UTC 2024


On Thu, 20 Jun 2024 08:50:31 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

> > so how could it be constexpr?
> 
> Is this a nerd snipe :)? I'm fine with this being kept as is.

? No :)

What I meant is: If I have `constexpr const char* f = "ccc"` and sizeof(f) is pointer size, I imagine there to be a pointer somewhere that points to a constant string literal in the constant segment. But if it is a real pointer, it would have to be set after program load, since only then you know the address of the string literal.

Idk. Did not investigate deeply. I like the ability of build time stringlen via sizeof for constexpr char[], that's why I prefer it.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17158#discussion_r1647245611


More information about the hotspot-dev mailing list