RFR: 8252505: C1/C2 compiler support for blackholes [v11]

Aleksey Shipilev shade at redhat.com
Thu Dec 3 12:36:31 UTC 2020


On 12/3/20 12:46 PM, Vladimir Ivanov wrote:
>> Actually, I don't think we need to ignore receiver in current code. It
>> is a left-over from my experiments that were only taking care of
>> primitive arguments. Since current code is much more simple, we can just
>> blackhole everything. Done in new commits.
> 
> Does it make more sense now to further limit the intrinsic to static
> methods only?

AFAIU, current intrinsics look back at the original Java method shape. So if we limit intrinsics to 
static methods, it would require API-breaking changes in JMH (i.e. users who do explicit 
Blackhole.consume calls), which I hope to avoid. Let's handle instance methods.

...or I misunderstand the suggestion (again).

-- 
Thanks,
-Aleksey



More information about the hotspot-dev mailing list