In this paper researches introduce the TL2 algorithm for Software Transactional Memory.
They describe the commit phase to be as following: