1. A method for using transactional memory hardware to facilitate code backpatching comprising: receiving changes to be made to certain code from at least two threads; storing the changes to be made to the certain code in a private state facility of transactional memory hardware on a central processing unit; enacting backpatching changes by attempting to commit all the changes to memory at once using an atomic commit feature of the transactional memory hardware; if another thread is trying to execute the certain code to be changed, causing the attempting to commit all the changes to memory to fail and re-enacting backpatching changes by attempting to commit all the changes to memory at once using the atomic commit feature of the transactional memory hardware.