A technique for performing a plurality of operations in a shared memory
system having a plurality of addresses is disclosed. The technique
includes entering into a speculative mode, speculatively performing each
of the plurality of operations on addresses in the shared memory system,
marking addresses in the shared memory system that have been operated on
speculatively as being in a speculative state, and exiting the
speculative mode, wherein exiting the speculative mode includes marking
the addresses in the shared memory system that have been operated on as
being in a non-speculative state.