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

Volker Simonis simonis at openjdk.org
Thu Jun 6 11:42:49 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

Still not sure how exactly it reproduces for you, but I can now reproduce the issue if I configure with `--with-jvm-variants=core --disable-jvm-feature-zgc --disable-jvm-feature-shenandoahgc --disable-jvm-feature-g1gc --disable-jvm-feature-parallelgc`. Otherwise I'm always running into compilation errors in one of the GC-related files. Maybe you compile on a platform where all these GCs are excluded by default or you excluded them manually?

Either way, I think I found the problem. I'll open a JBS issue and post a PR with a fix in a few minutes.

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

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


More information about the hotspot-dev mailing list