Skip to content

Commit

Permalink
Fix rb_gc_mark_locations and don't mark object repeatedly
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Nov 21, 2024
1 parent 49a4475 commit 5341e8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cext/ABI_check.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3
4
3 changes: 1 addition & 2 deletions src/main/c/cext/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ void rb_gc_mark_locations(const VALUE *start, const VALUE *end) {
VALUE *value = start;

while (value < end) {
rb_gc_mark(*value);
polyglot_invoke(RUBY_CEXT, "rb_gc_mark_maybe", *value);
rb_gc_mark_maybe(*value);
value++;
}
}
Expand Down

0 comments on commit 5341e8c

Please sign in to comment.