RFR: 8346661: Add a register print helper method and unify register printing
David Holmes
dholmes at openjdk.org
Thu Jan 9 03:08:34 UTC 2025
On Mon, 30 Dec 2024 08:27:56 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> For printing registers we can add a little helper method to shorten the coding. Also some of the register printing code can use loops.
I think it is very difficult to handle the formatting alignment/indentation when using a per-register helper this way. But I also don't think it is worth the trouble of trying to write a print function that takes a set of registers and their descriptions and figures out maximum name lengths etc to get that layout correct.
To be honest the bang-for-buck here seems too low to be worthwhile IMO.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22894#issuecomment-2579089344
More information about the hotspot-runtime-dev
mailing list