ohler55 / oj

Optimized JSON
http://www.ohler.com/oj
MIT License
3.14k stars 251 forks source link

Clean up HAVE_RB_GC_MARK_MOVABLE #910

Closed Watson1978 closed 8 months ago

Watson1978 commented 8 months ago

rb_gc_mark_movable has introduced at Ruby 2.7.0 https://github.com/ruby/ruby/commit/aac4d9d6c7e6b6b0742f3941b574f6006ccb5672

Current Oj gem only supports Ruby 2.7.0 or later. So there is no need to check whether function exists.

Watson1978 commented 8 months ago

I forgot that truffleruby doesn't have rb_gc_mark_movable :(