RFR: 8257848: -XX:CompileCommand=blackhole, * should be diagnostic [v2]
Aleksey Shipilev
shade at openjdk.java.net
Mon Dec 7 19:44:15 UTC 2020
On Mon, 7 Dec 2020 19:33:21 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> src/hotspot/share/compiler/compilerOracle.cpp line 414:
>>
>>> 412: bool CompilerOracle::should_blackhole(const methodHandle& method) {
>>> 413: if (!check_predicate(CompileCommand::Blackhole, method)) {
>>> 414: return false;
>>
>> Review self-comment. In fact, I am not sure if this should be `check_predicate` (like other commands), or `has_option` (like other options). CompilerOracle refactoring in JDK-8256508 seem to have converged both to mean the same. I left `check_predicate` as in original, and it also matches other `should_*`, see the definitions just above.
>
> I think using `check_predicate` is perfectly fine in this case.
Okay, I shall leave it at that then.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1674
More information about the hotspot-compiler-dev
mailing list