8302905: arm32 Raspberry Pi OS build broken by JDK-8301494

Reviewed-by: mikael, martin
This commit is contained in:
David Holmes 2023-02-21 01:23:06 +00:00
parent bb3dfd6adb
commit 91a2b5ec6f

View File

@ -263,7 +263,7 @@ class SlowSignatureHandler: public NativeSignatureIterator {
virtual void pass_object() {
intptr_t from_addr = (intptr_t)(_from + Interpreter::local_offset_in_bytes(0));
*_to++ = (*(intptr_t*)from_addr == 0) ? (intptr_t)nullptr : from_addr;
*_to++ = (*(intptr_t*)from_addr == 0) ? 0 : from_addr;
_from -= Interpreter::stackElementSize;
}
@ -306,9 +306,9 @@ class SlowSignatureHandler: public NativeSignatureIterator {
virtual void pass_object() {
intptr_t from_addr = (intptr_t)(_from + Interpreter::local_offset_in_bytes(0));
if(_last_gp < GPR_PARAMS) {
_toGP[_last_gp++] = (*(intptr_t*)from_addr == 0) ? nullptr : from_addr;
_toGP[_last_gp++] = (*(intptr_t*)from_addr == 0) ? 0 : from_addr;
} else {
*_to++ = (*(intptr_t*)from_addr == 0) ? nullptr : from_addr;
*_to++ = (*(intptr_t*)from_addr == 0) ? 0 : from_addr;
}
_from -= Interpreter::stackElementSize;
}