Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Revert to using weakref.rb, since it's based on a proper weak map. #4955
Opening as PR since this is a nontrivial change to put into 9.1, even though it aligns us better with MRI. Primary reason for this change is to get weakref specs to be more reliable...perhaps bringing our impl closer to theirs will do this.
This library used to use _id2ref (an internal API) for its
The new implementation of the library uses ObjectSpace::WeakMap,