Withdrawn: CODETOOLS-7903004: JMH: Compiler Blackholes auto-detection
Aleksey Shipilev
shade at openjdk.java.net
Fri Aug 6 07:22:42 UTC 2021
On Mon, 2 Aug 2021 08:39:55 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> This is another step towards better [compiler blackholes](https://shipilev.net/jvm/anatomy-quarks/27-compiler-blackholes/) support. This time, we can teach JMH to auto-detect the support. This improves the UX by asking users to supply `-Djmh.blackhole.autoDetect` for this experimental machinery to work. This would then use compiler blackholes for JDK 17+ and full blackholes for everything else. It would also check that compiler blackholes are available when users force it.
>
> All in all, this prevents from accidentally enabling compiler blackholes for JVMs that do not support it, and allows for a consistent JMH invocation line across all JVM versions.
>
> We would explore enabling auto-detection by default at the later time.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.java.net/jmh/pull/48
More information about the jmh-dev
mailing list