Baffled asks: what does post_call_nop() do?

Andrew Haley aph at redhat.com
Tue Oct 8 21:49:33 UTC 2019


On 10/7/19 5:24 PM, Rickard Bäckman wrote:
> We use it to put metadata about the nmethod in there. Like offset to nmethod header for faster lookup. 

Aha! I would not have guessed.

> I’m wondering if those numbers are really attributed to the right instruction. 
> Change it to emit nothing and see if you get a 71% speedup. I’m
> guessing that % is really the call / return instruction and if
> post_call_nop wasn’t there it would just be added to the next
> instruction.

Mkay, thanks. I think you're right: the delay seems to be caused by a
horrendous pipeline stall in JMH's Blackhole::consume, nothing to do
with Loom.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the loom-dev mailing list