Skip to content


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

Backport-of: c0623972cffdbcd7f80e84a1ec344fd382a4a5cc
  • Loading branch information
shipilev committed May 25, 2023
1 parent 5bf1b9a commit 0d2cc35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/classfile/vmIntrinsics.cpp
Expand Up @@ -397,6 +397,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;
case vmIntrinsics::_getShortUnaligned:
Expand All @@ -407,7 +408,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;
case vmIntrinsics::_hashCode:
Expand Down

1 comment on commit 0d2cc35

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.