Withdrawn: 7902944: JMH: Avoid weak references in Blackhole.consume(Object)

Aleksey Shipilev shade at openjdk.org
Fri Jan 10 09:09:56 UTC 2025


On Thu, 9 Jan 2025 12:48:09 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> See the bug for rationale. This avoids `WeakReference`-s completely through the aliased box trick. Not only this solves the original problem with inline types, it also allows for prompt reclamation of the objects, without relying on the specifics of VM reference processing.
> 
> I looked at `jmh-core-benchmarks` results, and they suggest this still works reliably without compiler blackholes. Compiler blackholes make all of this irrelevant.

This pull request has been closed without being integrated.

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

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


More information about the jmh-dev mailing list