You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the8472 edited this page Jan 14, 2013
·
1 revision
Collection of rough ideas jruby-internal optimizations. Flashes of insight welcome.
Thread.kill/Thread.raise
method entry and loop backedges contain thread mailbox read. switchpointed to a NOP by default
on the first mail the switchpoint is flipped
actual site were a mail is caught is recorded. this site will permanently perform polling from now on. (possibly after some walltime delay)
remaining callsites can be reoptimized with a switchpoint
Next thread.kill will optimistically wait under the assumption that kills are localized to busy loop and that we already installed permanent polling at the right site. After a timeout return to step 2.