Avoid infinite loops in bytecode.