RFR: 8252505: C1/C2 compiler support for blackholes [v23]

Vladimir Ivanov vlivanov at openjdk.java.net
Fri Dec 4 09:51:55 UTC 2020


On Fri, 4 Dec 2020 09:39:19 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> IMO `CompileCommand=quiet` is fine here, but another option is to check `PrintWarnings`. I believe the output can be quite noisy and there's no way to turn it off.
>
> Well, if users want to shun the warning, then they should not put incorrect compiler commands to JVM. For example, JMH does run with `quiet` to silence the "successful" command output, and I still want JVM to show warning messages when people put a `@CompilerControl(BLACKHOLE)` on a wrong method. It is better UX.

Then check `PrintWarnings`? It's an explicit user request to silent JVM warnings on output stream.

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

PR: https://git.openjdk.java.net/jdk/pull/1203


More information about the hotspot-dev mailing list