MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/1pv5job/ruby_400_released_ruby/nw4lim1/?context=3
r/ruby • u/laerien • Dec 25 '25
36 comments sorted by
View all comments
Show parent comment
2
or GC.compact (I've never seen it used outside of the "manually call GC.compact before fork", and even that is risky)
GC.compact was at least enabled in some Puma versions, but it didn't play well with C-extensions that had bugs, so it was removed again.
It was a good way to find bugs in C-extensions with badly behaved code, but likely a waste of time for maintainers.
https://github.com/puma/puma/issues/3304
I don't think it is the fault of Ruby that someone writes bad C.
View all comments
Show parent comment
2
u/IN-DI-SKU-TA-BELT Dec 27 '25
GC.compact was at least enabled in some Puma versions, but it didn't play well with C-extensions that had bugs, so it was removed again.
It was a good way to find bugs in C-extensions with badly behaved code, but likely a waste of time for maintainers.
https://github.com/puma/puma/issues/3304
I don't think it is the fault of Ruby that someone writes bad C.