Skip to content

Commit 85d9ebc

Browse files
committed
Remove duplicate asan_unpoisoning_object
It's already defined in internal/sanitizers.h.
1 parent bc6d48b commit 85d9ebc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

gc.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4913,12 +4913,6 @@ rb_asan_poisoned_object_p(VALUE obj)
49134913
return __asan_region_is_poisoned(ptr, rb_gc_obj_slot_size(obj));
49144914
}
49154915

4916-
#define asan_unpoisoning_object(obj) \
4917-
for (void *poisoned = asan_unpoison_object_temporary(obj), \
4918-
*unpoisoning = &poisoned; /* flag to loop just once */ \
4919-
unpoisoning; \
4920-
unpoisoning = asan_poison_object_restore(obj, poisoned))
4921-
49224916
const char *
49234917
rb_raw_obj_info(char *const buff, const size_t buff_size, VALUE obj)
49244918
{

0 commit comments

Comments
 (0)