Skip to content

Commit

Permalink
Deprecate rb_gc_force_recycle and make it a no-op function
Browse files Browse the repository at this point in the history
  • Loading branch information
moste00 authored and andrykonchin committed Mar 14, 2023
1 parent 7cbac45 commit 3735ce4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Compatibility:
* Add `Process._fork` (#2733, @horakivo).
* Update to JCodings 1.0.58 and Joni 2.1.44 (@eregon).
* Add `MatchData#match` and `MatchData#match_length` (#2733, @horakivo).
* Deprecate `rb_gc_force_recycle` and make it a no-op function (#2733, @moste00).

Performance:

Expand Down
2 changes: 1 addition & 1 deletion lib/cext/ABI_check.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4
5
3 changes: 1 addition & 2 deletions src/main/c/cext/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ void rb_gc(void) {
}

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

VALUE rb_gc_latest_gc_info(VALUE key) {
Expand Down

0 comments on commit 3735ce4

Please sign in to comment.