[riscv-port] RFR: 8277884: riscv: Fix cmpxchg_narrow_value that needs to sign-extend non-bool results

zhengxiaolinX duke at openjdk.java.net
Mon Nov 29 06:40:23 UTC 2021

On Mon, 29 Nov 2021 05:06:34 GMT, Fei Yang <fyang at openjdk.org> wrote:

> Looks good. I can also reproduce the bug with following three jcstress tests: org.openjdk.jcstress.tests.atomicity.varHandles.fields.GetAndSetTest.GetAndSetByte org.openjdk.jcstress.tests.atomicity.varHandles.fields.GetAndSetTest.GetAndSetShort org.openjdk.jcstress.tests.atomicity.varHandles.arrays.GetAndSetTest.GetAndSetByte

Quite thanks for the supplementary information about the failed tests.
A simple `test/hotspot/jtreg/compiler` on Qemu seems no error found. And these three jcstress tests seem no `FORBIDDEN` occurrences after this patch.


PR: https://git.openjdk.java.net/riscv-port/pull/15

More information about the riscv-port-dev mailing list