Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.14.1
-
None
-
Patch Available
-
Patch
Description
Ruby v2.7 introduced support for a compacting garbage collector (https://bugs.ruby-lang.org/issues/15626) that can be invoked via `GC.compact`.
The Thrift library does not mark its global constants, so seg faults appear when using `GC.compact`.
The attached patch appears to fix the problem and makes tests pass in Ruby v2.7 and v3.0.