Skip to content

Commit c4507e5

Browse files
moste00andrykonchin
authored andcommitted
Deprecate rb_gc_force_recycle and make it a no-op function
1 parent 8d6a531 commit c4507e5

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
@@ -93,6 +93,7 @@ Compatibility:
9393
* Update to JCodings 1.0.58 and Joni 2.1.44 (@eregon).
9494
* Add `MatchData#match` and `MatchData#match_length` (#2733, @horakivo).
9595
* Add `StructClass#keyword_init?` method (#2377, @moste00).
96+
* Deprecate `rb_gc_force_recycle` and make it a no-op function (#2733, @moste00).
9697

9798
Performance:
9899

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)