Re:Ruby 2.1 Garbage Collection: ready for production
by thedigitalengel on Tuesday April 08, 2014 @07:51PM
(#7556818)
(Disclaimer: I know nothing about Ruby, but I know some things about JIT compilers)
Another way to handle this is to assume that Fixnum#+ hasn't changed when compiling a method that is using it (maybe add a check at method entry); but when it does get redefined you "deoptimize" the methods that you compiled while holding that assumption.
Another way to handle this is to assume that Fixnum#+ hasn't changed when compiling a method that is using it (maybe add a check at method entry); but when it does get redefined you "deoptimize" the methods that you compiled while holding that assumption.