Skip to content

Commit b777724

Browse files
committed
Don't check poisoned for immediates
1 parent c32fd1b commit b777724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm_insnhelper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6058,7 +6058,7 @@ vm_objtostring(const rb_iseq_t *iseq, VALUE recv, CALL_DATA cd)
60586058
{
60596059
// Debugging code for ASAN issues such as:
60606060
// http://ci.rvm.jp/logfiles/brlog.trunk_asan.20240922-002945
6061-
if (asan_poisoned_object_p(recv)) {
6061+
if (!RB_IMMEDIATE_P(recv) && asan_poisoned_object_p(recv)) {
60626062
asan_unpoison_object(recv, false);
60636063
rb_bug("vm_objtostring: recv is poisoned (type %d)", TYPE(recv));
60646064
}

0 commit comments

Comments
 (0)