Skip to content

Commit 1288159

Browse files
committed
Just in case
1 parent 1007ae2 commit 1288159

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mono/mono/mini/interp/transform.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -3841,7 +3841,8 @@ interp_transform_call (TransformData *td, MonoMethod *method, MonoMethod *target
38413841
if (MINT_IS_PATCHABLE_CALL (td->last_ins->opcode)) {
38423842
g_assert (!calli && !is_virtual);
38433843
td->last_ins->flags |= INTERP_INST_FLAG_RECORD_CALL_PATCH;
3844-
dn_simdhash_ptr_ptr_try_add (td->patchsite_hash, td->last_ins, target_method);
3844+
if (!dn_simdhash_ptr_ptr_try_add (td->patchsite_hash, td->last_ins, target_method))
3845+
dn_simdhash_ptr_ptr_try_replace (td->patchsite_hash, td->last_ins, target_method);
38453846
}
38463847
#endif
38473848
}

0 commit comments

Comments
 (0)