RFR: 7903448: JMH: Override the use of compiler hints using a system property [v2]
Gilles Duboscq
gdub at openjdk.org
Wed Apr 12 12:04:09 UTC 2023
On Thu, 23 Mar 2023 18:45:29 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.
>
> Gilles Duboscq has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
>
> Allow forcing the use of compiler hints using a system property
>
> Using `-Djmh.compilerhints.mode=FORCE_ON` will force the use of compiler
> hints. `-Djmh.compilerhints.mode=FORCE_OFF` will prevent the use of compiler
> hints. When the system property is not set, or when it is set to `AUTO`,
> the current beahviour based on vm name and version will be used.
Other things have taken over but i was still planning to get back to this within the next 1-2 weeks. If somebody else needs that faster, feel free to take over.
Thanks for the review feedback.
-------------
PR Comment: https://git.openjdk.org/jmh/pull/96#issuecomment-1505147917
More information about the jmh-dev
mailing list