mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
Use BUILTIN_TYPE in gc_mark_check_t_none
This commit is contained in:
parent
5a9fac6939
commit
9e4a756963
Notes:
git
2025-10-16 00:13:48 +00:00
@ -4377,7 +4377,7 @@ gc_grey(rb_objspace_t *objspace, VALUE obj)
|
||||
static inline void
|
||||
gc_mark_check_t_none(rb_objspace_t *objspace, VALUE obj)
|
||||
{
|
||||
if (RB_UNLIKELY(RB_TYPE_P(obj, T_NONE))) {
|
||||
if (RB_UNLIKELY(BUILTIN_TYPE(obj) == T_NONE)) {
|
||||
enum {info_size = 256};
|
||||
char obj_info_buf[info_size];
|
||||
rb_raw_obj_info(obj_info_buf, info_size, obj);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user