1. A method for using transactional memory hardware to facilitate code backpatching comprising the steps of: storing changes to be made to certain code in a private state facility of transactional memory hardware on a central processing unit; and enacting backpatching changes by attempting to commit all the changes to memory at once using an atomic commit feature of the transactional memory hardware.