RFR: 8301403: Eliminate memory allocations in JVMFlag::printFlags during signal handling [v10]
Thomas Stuefe
stuefe at openjdk.org
Fri Jul 26 09:35:40 UTC 2024
On Fri, 26 Jul 2024 06:57:08 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
> I like how `constexpr` spread like butter on toast throughout the codebase. What I don't get is what `constexpr` gives us here. Line 705 isn't declared as `constexpr`, so this is just evaluated at runtime.
You sure? I would have thought that if the array size is constexpr, the array would be constexpr then too.
But sure, let's define the array size separately then, as constexpr. We should get a compiler error then if its not const.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20202#issuecomment-2252347346
More information about the hotspot-runtime-dev
mailing list