Skip to content

Commit

Permalink
[GR-18163] Fix rb_gc_mark_locations and don't mark object twice
Browse files Browse the repository at this point in the history
PullRequest: truffleruby/4407
  • Loading branch information
andrykonchin committed Nov 21, 2024
2 parents 49a4475 + 5341e8c commit 567aa27
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 567aa27

Please sign in to comment.