1. A method of restoring synchronization to program code comprising: determining if a class object has been dynamically loaded; determining if the class object was desynchronized; determining if the desynchronized class object includes a runtime contention; restoring synchronization to at least a portion of the program code via replacing the at least a portion of the program code with an original portion of the class object, restoring synchronization further comprising: performing lock/unlock compensation for an execution thread associated with the at least the portion of the program code; and suspending the execution thread prior to performing lock/unlock compensation for the execution thread.