Skip to content

Commit

Permalink
8292713: Unsafe.allocateInstance should be intrinsified without UseUn…
Browse files Browse the repository at this point in the history
…alignedAccesses

Reviewed-by: psandoz, kvn, fyang
  • Loading branch information
shipilev committed Aug 24, 2022
1 parent a45a4b9 commit c062397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/classfile/vmIntrinsics.cpp
Expand Up @@ -419,6 +419,7 @@ bool vmIntrinsics::disabled_by_jvm_flags(vmIntrinsics::ID id) {
case vmIntrinsics::_compareAndExchangeReference:
case vmIntrinsics::_compareAndExchangeReferenceAcquire:
case vmIntrinsics::_compareAndExchangeReferenceRelease:
case vmIntrinsics::_allocateInstance:
if (!InlineUnsafeOps) return true;
break;
case vmIntrinsics::_getShortUnaligned:
Expand All @@ -429,7 +430,6 @@ bool vmIntrinsics::disabled_by_jvm_flags(vmIntrinsics::ID id) {
case vmIntrinsics::_putCharUnaligned:
case vmIntrinsics::_putIntUnaligned:
case vmIntrinsics::_putLongUnaligned:
case vmIntrinsics::_allocateInstance:
if (!InlineUnsafeOps || !UseUnalignedAccesses) return true;
break;
case vmIntrinsics::_hashCode:
Expand Down

1 comment on commit c062397

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.