From: Charles Oliver Nutter Date: 2008-12-06T02:45:35+09:00 Subject: [ruby-core:20381] Re: Behavior: autoload calls rb_require() directly Paul Brannan wrote: > On Fri, Dec 05, 2008 at 12:31:36PM +0900, Tomas Matousek wrote: >> Except for the frames that are already on stack... that's not so easy. >> >> Tomas > > Yes, that's (very) difficult, but not impossible (method return needs to > be a little bit smarter). Well, it's more than that; at any point you need to be able to branch back into unoptimized code, since your assumptions are no longer valid. The JVM does this by putting guards around all inlined calls that have a potential to change later on. - Charlie