8292713: Unsafe.allocateInstance should be intrinsified without UseUnalignedAccesses

Reviewed-by: psandoz, kvn, fyang
This commit is contained in:
Aleksey Shipilev 2022-08-24 13:19:43 +00:00
parent a45a4b9465
commit c0623972cf

View File

@ -419,6 +419,7 @@ bool vmIntrinsics::disabled_by_jvm_flags(vmIntrinsics::ID id) {
case vmIntrinsics::_compareAndExchangeReference: case vmIntrinsics::_compareAndExchangeReference:
case vmIntrinsics::_compareAndExchangeReferenceAcquire: case vmIntrinsics::_compareAndExchangeReferenceAcquire:
case vmIntrinsics::_compareAndExchangeReferenceRelease: case vmIntrinsics::_compareAndExchangeReferenceRelease:
case vmIntrinsics::_allocateInstance:
if (!InlineUnsafeOps) return true; if (!InlineUnsafeOps) return true;
break; break;
case vmIntrinsics::_getShortUnaligned: case vmIntrinsics::_getShortUnaligned:
@ -429,7 +430,6 @@ bool vmIntrinsics::disabled_by_jvm_flags(vmIntrinsics::ID id) {
case vmIntrinsics::_putCharUnaligned: case vmIntrinsics::_putCharUnaligned:
case vmIntrinsics::_putIntUnaligned: case vmIntrinsics::_putIntUnaligned:
case vmIntrinsics::_putLongUnaligned: case vmIntrinsics::_putLongUnaligned:
case vmIntrinsics::_allocateInstance:
if (!InlineUnsafeOps || !UseUnalignedAccesses) return true; if (!InlineUnsafeOps || !UseUnalignedAccesses) return true;
break; break;
case vmIntrinsics::_hashCode: case vmIntrinsics::_hashCode: