1. A machine readable storage medium including compiler code which, when executed by a machine, causes the machine to perform the operations of: inserting update-in-place write barrier software transactional memory (STM) operations at a first transactional write within a first transaction of a main portion of application code, wherein the update-in-place write barrier operations, when executed, are to cause the machine to update-in-place a first memory location referenced by the first transactional write; and inserting write buffering software transactional memory (STM) barrier operations at a second transactional write within a second transaction of a second portion of code of the application code, wherein the write buffering barrier operations, when executed, are to cause the machine to buffer the second transactional write to a second memory location referenced by the second transactional write.