提交 7938ac4d 编写于 作者: R rraghavan

8226198: use of & instead of && in LibraryCallKit::arraycopy_restore_alloc_state

Summary: Used logical operator correctly
Reviewed-by: kvn, thartmann
上级 b62db212
......@@ -4435,8 +4435,8 @@ JVMState* LibraryCallKit::arraycopy_restore_alloc_state(AllocateArrayNode* alloc
ciMethod* trap_method = alloc->jvms()->method();
int trap_bci = alloc->jvms()->bci();
if (!C->too_many_traps(trap_method, trap_bci, Deoptimization::Reason_intrinsic) &
!C->too_many_traps(trap_method, trap_bci, Deoptimization::Reason_null_check)) {
if (!C->too_many_traps(trap_method, trap_bci, Deoptimization::Reason_intrinsic) &&
!C->too_many_traps(trap_method, trap_bci, Deoptimization::Reason_null_check)) {
// Make sure there's no store between the allocation and the
// arraycopy otherwise visible side effects could be rexecuted
// in case of deoptimization and cause incorrect execution.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册