[master] RFR: Implement non-racy fast-locking [v2]

Roman Kennke rkennke at openjdk.org
Fri Jul 29 08:35:25 UTC 2022


On Fri, 29 Jul 2022 04:01:24 GMT, Quan Anh Mai <duke at openjdk.org> wrote:

> Note that on x86 an instruction that read from a register that was written with a smaller-width instruction would result in register stall. For example in this occasion a later read on 32-bit of `disp_hdr` would be stalled as the last write is only 8-bit wide. As a result, it would be less efficient to use `andb` instead of `andptr` as you have fixed.
> 
> On a side note, they fix this issue with 32-bit write by making it an actual 64-bit write of the zero-extended value.
> 
> Thanks.

Ok, good to know. X86 is a funny platform to program assembly on. ;-)

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

PR: https://git.openjdk.org/lilliput/pull/51


More information about the lilliput-dev mailing list