summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gc.c b/gc.c
index cde2c1b9bc..a680bd8ed3 100644
--- a/gc.c
+++ b/gc.c
@@ -4415,9 +4415,7 @@ is_live_object(rb_objspace_t *objspace, VALUE ptr)
static inline int
is_markable_object(VALUE obj)
{
- if (RB_SPECIAL_CONST_P(obj)) return FALSE; /* special const is not markable */
- check_rvalue_consistency(obj);
- return TRUE;
+ return !RB_SPECIAL_CONST_P(obj);
}
int