Skip to content

Commit cd38a32

Browse files
committed
[GR-40333] Ruby 3.1 Deprecate rb_gc_force_recycle and make it a no-op function
PullRequest: truffleruby/3701
2 parents ade70ee + c4507e5 commit cd38a32

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Compatibility:
9595
* Add `StructClass#keyword_init?` method (#2377, @moste00).
9696
* Support optional `level` argument for `File.dirname` method (#2733, @moste00).
9797
* Add `Thread::Backtrace.limit` method (#2733, @andrykonchin).
98+
* Deprecate `rb_gc_force_recycle` and make it a no-op function (#2733, @moste00).
9899

99100
Performance:
100101

lib/cext/ABI_check.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4
1+
5

src/main/c/cext/gc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ void rb_gc(void) {
5353
}
5454

5555
void rb_gc_force_recycle(VALUE obj) {
56-
// Comments in MRI imply rb_gc_force_recycle functions as a GC guard
57-
RB_GC_GUARD(obj);
56+
/* no-op */
5857
}
5958

6059
VALUE rb_gc_latest_gc_info(VALUE key) {

0 commit comments

Comments
 (0)