RFR: 8317575: AArch64: C2_MacroAssembler::fast_lock uses rscratch1 for cmpxchg result
Andrew Haley
aph at openjdk.org
Thu Oct 5 08:53:09 UTC 2023
On Thu, 5 Oct 2023 08:08:31 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> Please review this removal a potentially problematic usage of rscratch1 in C2_MacroAssembler::fast_lock.
Ouch! Great catch.
Yes, this patch looks good. And it would indeed make sense to poison `rscratch1` on the slow path. I don't know if that worked by luck or the author of fast locking realized that `rscratch1` wasn't clobbered if the compare failed.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16049#issuecomment-1748406038
More information about the hotspot-compiler-dev
mailing list