1. A method, comprising identifying a hot code trace of a program, determining a completion ratio for the hot code trace, and packaging the hot code trace into a transactional memory region in response to the completion ratio having a predetermined relationship to a threshold ratio.