Skip to content

Commit

Permalink
Remove unused gc_mark_stack_values
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Feb 29, 2024
1 parent 6665ec2 commit 3d61477
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions gc.c
Expand Up @@ -6211,21 +6211,14 @@ rb_gc_mark_values(long n, const VALUE *values)
}
}

static void
gc_mark_stack_values(rb_objspace_t *objspace, long n, const VALUE *values)
{
long i;

for (i=0; i<n; i++) {
gc_mark_and_pin(objspace, values[i]);
}
}

void
rb_gc_mark_vm_stack_values(long n, const VALUE *values)
{
rb_objspace_t *objspace = &rb_objspace;
gc_mark_stack_values(objspace, n, values);

for (long i = 0; i < n; i++) {
gc_mark_and_pin(objspace, values[i]);
}
}

static int
Expand Down

0 comments on commit 3d61477

Please sign in to comment.