Posted Oct 28, 2010 13:22 UTC (Thu) by CChittleborough (subscriber, #60775)
In reply to: Jump label by tcourbon
Parent article: Jump label
With the new approach, there is very little overhead in the instrumented code: either a NOP or an unconditional branch. The overhead has been moved to compile time (setting up the table of 'jump labels') and the time at which jumps are turned on or off (by calling enable_jump_label() or disable_jump_label(), which use the table to replace the NOP with a branch or vice versa).