PrintAssembly at runtime / to different target

Aleksey Shipilev shade at redhat.com
Mon Sep 16 16:24:43 UTC 2019


On 9/16/19 6:18 PM, Stefan Reich wrote:
> How can I get assembly output in hotspot.log though? I only ever see it on STDOUT, even with
> LogCompilation enabled.

LogCompilation has to include output that would otherwise would end up on tty. It would be captured
in <tty> there.

JMH -prof perfasm does use LogCompilation to get disassembly like this:
 http://hg.openjdk.java.net/code-tools/jmh/file/99d7b73cf1e3/jmh-core/src/main/java/org/openjdk/jmh/profile/AbstractPerfAsmProfiler.java#l239

-- 
Thanks,
-Aleksey



More information about the hotspot-dev mailing list