Integrated: 7903448: JMH: Override the use of compiler hints using a system property

Gilles Duboscq gdub at openjdk.org
Mon Apr 24 09:22:14 UTC 2023


On Tue, 7 Mar 2023 16:37:01 GMT, Gilles Duboscq <gdub at openjdk.org> wrote:

> Using `-Djmh.compilerhints.mode=true` will force the use of compiler hints. `-Djmh.compilerhints.mode=false` will prevent the use of compiler hints. When the system property is not set, the current beahviour based on vm name and version will be used by default.
> 
> This is especially useful when working with uncommon / rare JVMs or when adding compiler hints support to a new JVM.
> 
> I considered auto-detecting support for compiler hints but that didn't fit very well in the current code and required much more intrusive changes.

This pull request has now been integrated.

Changeset: c5c93a23
Author:    Gilles Duboscq <gdub at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jmh/commit/c5c93a239b71fab0a563c66a0459eef8dda14c8a
Stats:     81 lines in 3 files changed: 72 ins; 0 del; 9 mod

7903448: JMH: Override the use of compiler hints using a system property

Reviewed-by: shade

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

PR: https://git.openjdk.org/jmh/pull/96


More information about the jmh-dev mailing list