"What The Hardware Does" is not What Your Program Does: Uninitialized Memory

Pretty much. This is essentially a data race, which you can somewhat get around by using volatile loads. However the "cute data structure" will definitely not work in such conditions.

1 Like