Trampoline

A trampoline is a mechanism used, for example, in JIT compilation without interpretation. A trampoline is usually a piece of native code placed in memory that "pretends" to be a fully compiled method. When the method is called, the trampoline is executed. The trampoline contains code that makes the called method generate itself and then dispatches control to the freshly generated code. Future calls to the trampoline are back patched to go directly to the real method. When no more calls are relayed through the trampoline, its code buffer can be reclaimed.

See also Method garbage collection and JIT compilation.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset