Skip to content

Optimization Ideas

the8472 edited this page Jan 14, 2013 · 1 revision

Collection of rough ideas jruby-internal optimizations. Flashes of insight welcome.

Thread.kill/Thread.raise

  1. method entry and loop backedges contain thread mailbox read. switchpointed to a NOP by default
  2. on the first mail the switchpoint is flipped
  3. actual site were a mail is caught is recorded. this site will permanently perform polling from now on. (possibly after some walltime delay)
  4. remaining callsites can be reoptimized with a switchpoint
  5. 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.
Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy