public final class Bugshaker extends java.lang.Object implements MultiverseConstants
if(MultiverseConstants.SHAKE_BUGS){shakeBugs();}Since the SHAKE_BUGS field is final, it can be removed by the JIT is the bugshaking is disabled so there is no overhead. At the moment the inside of the Bugshaker is not configurable (so no control on how much delay and how often it happens).
LOCKMODE_EXCLUSIVE, LOCKMODE_NONE, LOCKMODE_READ, LOCKMODE_WRITE, SHAKE_BUGS, SPIN_YIELD, TRACING_ENABLED
public static void shakeBugs()
public static void sleepUs(long delayUs)
delayUs
- the number of microseconds to delay.