There are no know bugs related to this, still it may fix some latent ones.
Main concerns with preexisting code:
- Inconsistent atomic/non-atomic access to the same field.
- Assumption that bitfield chunk_state is always the first byte without even taking into account endianness.
This breaks Windows -- in the MS abi, only variables of the same type can be packed, and so the static_assert about the size fails.
...oh, mstorsjo alread reported this. Reverting, then :)