Skip to content

Commit

Permalink
Merge pull request #5668 from dearblue/gcred
Browse files Browse the repository at this point in the history
No need to protect red objects
  • Loading branch information
matz committed Mar 24, 2022
2 parents ad568eb + c3eac4f commit d53a991
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gc.c
Expand Up @@ -448,6 +448,7 @@ mrb_gc_destroy(mrb_state *mrb, mrb_gc *gc)
static void
gc_protect(mrb_state *mrb, mrb_gc *gc, struct RBasic *p)
{
if (is_red(p)) return;
#ifdef MRB_GC_FIXED_ARENA
if (gc->arena_idx >= MRB_GC_ARENA_SIZE) {
/* arena overflow error */
Expand Down

0 comments on commit d53a991

Please sign in to comment.