DCONS_GEN_MASK
#define DCONS_NEXT_GEN(x) (((x) + 1) & DCONS_GEN_MASK)
lost = ch->size * DCONS_GEN_MASK - ch->pos;
lost += DCONS_GEN_MASK;