RFR: 8329421: Native methods can not be selectively printed [v2]

Wang Haomin wanghaomin at openjdk.org
Thu Jun 6 01:32:06 UTC 2024


On Tue, 2 Apr 2024 07:23:25 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.
>
> Volker Simonis has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add test for -XX:+PrintNativeNMethods

First, I've build on aarch64. `git checkout jdk-23+17`  or `git checkout 3057dded4878b0110bc2c09b52019570a0a31c9f`.
Secondly, configure with `--with-debug-level=fastdebug --with-jvm-variants=core`.
Finally, `make images CONF=core`.

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

PR Comment: https://git.openjdk.org/jdk/pull/18567#issuecomment-2151237267


More information about the hotspot-dev mailing list