Uninformed: Informative Information for the Uninformed

Vol 3» 2006.Jan

Spinning the Calling Thread

Type: R0 Recovery
Size: 2 bytes
Compat: All
Migration: May be required
Requirements: No held locks

An alternative approach is to just spin the calling thread at PASSIVE_LEVEL. If the conditions are right, this should not lead to a deadlock, but it is likely that performance will be adversely affected. The benefit is that it does not increase the size of the payload by much considering such an approach can be implemented in two bytes:

00000000  EBFE              jmp short 0x0