diff options
author | Peter Zhu <[email protected]> | 2024-12-18 12:01:09 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-12-19 09:14:34 -0500 |
commit | a58675386c10f4183116056bc0cf289548883ac0 (patch) | |
tree | cc978f9016bca402ca068218c0f51c349db7e07f /gc.c | |
parent | fcd44eee09f0a26c7711732bc8782fb8afa924f2 (diff) |
Prefix asan_poison_object with rb
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12385
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1478,7 +1478,7 @@ internal_object_p(VALUE obj) } } if (ptr || !RBASIC(obj)->flags) { - asan_poison_object(obj); + rb_asan_poison_object(obj); } return 1; } @@ -4310,21 +4310,21 @@ rb_raw_obj_info_buitin_type(char *const buff, const size_t buff_size, const VALU #undef C void -asan_poison_object(VALUE obj) +rb_asan_poison_object(VALUE obj) { MAYBE_UNUSED(struct RVALUE *) ptr = (void *)obj; asan_poison_memory_region(ptr, rb_gc_obj_slot_size(obj)); } void -asan_unpoison_object(VALUE obj, bool newobj_p) +rb_asan_unpoison_object(VALUE obj, bool newobj_p) { MAYBE_UNUSED(struct RVALUE *) ptr = (void *)obj; asan_unpoison_memory_region(ptr, rb_gc_obj_slot_size(obj), newobj_p); } void * -asan_poisoned_object_p(VALUE obj) +rb_asan_poisoned_object_p(VALUE obj) { MAYBE_UNUSED(struct RVALUE *) ptr = (void *)obj; return __asan_region_is_poisoned(ptr, rb_gc_obj_slot_size(obj)); |