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: phh
Backport-of: c0623972cffdbcd7f80e84a1ec344fd382a4a5cc
  • Loading branch information
RealFYang committed Sep 12, 2023
1 parent 0fd1ce3 commit 0713dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/classfile/vmSymbols.cpp
Expand Up @@ -716,6 +716,7 @@ bool vmIntrinsics::is_disabled_by_flags(vmIntrinsics::ID id) {
case vmIntrinsics::_compareAndExchangeObject:
case vmIntrinsics::_compareAndExchangeObjectAcquire:
case vmIntrinsics::_compareAndExchangeObjectRelease:
case vmIntrinsics::_allocateInstance:
if (!InlineUnsafeOps) return true;
break;
case vmIntrinsics::_getShortUnaligned:
Expand All @@ -726,7 +727,6 @@ bool vmIntrinsics::is_disabled_by_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 0713dbb

@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.