RFR: 8360389: Support printing from C2 compiled code [v3]

Vladimir Kozlov kvn at openjdk.org
Mon Aug 25 17:43:40 UTC 2025


On Mon, 25 Aug 2025 12:43:21 GMT, Benoît Maillard <bmaillard at openjdk.org> wrote:

> Is AOT code generation a concern even if this is only a debug feature, and that we have to modify the code to actually use it?

I did not realize that you have to modify C2 compiler code to use this feature. So we are safe in AOT for now.
Eventually we may want to support it with AOT to see results with AOTed nmethods.

Note, there is no Relocation info (external_word) attached to string's address load which is the issue with AOT I talked about:

0x00007f4da0562b9f:   	movabsq	$0x7f4da53eaed2, %rdi

It is because you use this:
``` 
Node* str_node = gvn->transform(new ConPNode(TypeRawPtr::make(((address) str))));


You don't need to solve it now but please keep it in mind.

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

PR Comment: https://git.openjdk.org/jdk/pull/26475#issuecomment-3221160667


More information about the hotspot-dev mailing list