RFR: 8329421: Native methods can not be selectively printed
Vladimir Kozlov
kvn at openjdk.org
Mon Apr 1 20:51:00 UTC 2024
On Mon, 1 Apr 2024 19:20:53 GMT, Volker Simonis <simonis at openjdk.org> wrote:
> Native methods (i.e. "native wrappers") can not be selectively printed with `-XX:CompileCommand=print,class::method`. Currently the only way to print native methods is to use the global `-XX:+PrintAssembly` option. But this prints *all* compiled methods which can be too much if we're just interested in a specific native wrapper. There's no reason to not apply `-XX:CompileCommand` options correctly to native methods as well.
src/hotspot/share/runtime/sharedRuntime.cpp line 2790:
> 2788: }
> 2789:
> 2790: DirectiveSet* directive = DirectivesStack::getMatchingDirective(method, CompileBroker::compiler(CompLevel_simple));
Will it work for when `-XX:+PrintAssembly` used and not `-XX:CompileCommand=print,`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18567#discussion_r1546829699
More information about the hotspot-dev
mailing list