-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JMH and use of Blackhole #1205
Comments
This should suffice:
...and:
|
I know that this needs to be passed in, but is it in this case because of DCE (the hole itself would be removed rendering the other part dead too?) @shipilev |
Yes, Blackhole itself is DCE-d, along with the computation it consumes. With JMH 0.6+, the attempt to instantiate Blackhole directly will throw: http://hg.openjdk.java.net/code-tools/jmh/rev/de0365d7e4d0 (see the comment there for rationale). Therefore, if there are benchmarks which fail after updating the JMH version, you know what to fix :) |
@shipilev alright staying cool ;). Thanks! |
@benjchristensen should I take this on? |
While you are at it, you may want to update to 0.7.2. |
Finished upgrading to 0.7.3 |
I was discussing JMH with @shipilev and he brought this to my attention while informing me our use of JMH may not be quite right: http://hg.openjdk.java.net/code-tools/jmh/file/48d149ac3218/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_28_BlackholeHelpers.java
Opening this issue to track it and get our JMH input class improved: https://github.com/Netflix/RxJava/blob/master/rxjava-core/src/perf/java/rx/jmh/InputWithIncrementingInteger.java#L74
The text was updated successfully, but these errors were encountered: