26. A method for multicore binary translation, the method comprising: entering, on a processor core of a multi-core processor of a computing device, a binary translation scheduler in response to a hotspot event identifying a native code hotspot; determining, in a non-preemptive mode in response to entering the binary translation scheduler, whether a global thread is suspended; migrating the global thread to the processor core and resume the global thread in response to determining that the global thread is suspended; determining, in the non-preemptive mode and in response to determining that the global thread is not suspended, whether a global translation cache operation is pending; activating the global thread on the processor core in response to determining that the global translation cache operation is pending; and starting, in a preemptive mode on the processor core and in response to determining that the global translation cache operation is not pending, a local binary translation thread to generate a pending global translation cache operation.
26. A method for multicore binary translation, the method comprising: entering, on a processor core of a multi-core processor of a computing device, a binary translation scheduler in response to a hotspot event identifying a native code hotspot; determining, in a non-preemptive mode in response to entering the binary translation scheduler, whether a global thread is suspended; migrating the global thread to the processor core and resume the global thread in response to determining that the global thread is suspended; determining, in the non-preemptive mode and in response to determining that the global thread is not suspended, whether a global translation cache operation is pending; activating the global thread on the processor core in response to determining that the global translation cache operation is pending; and starting, in a preemptive mode on the processor core and in response to determining that the global translation cache operation is not pending, a local binary translation thread to generate a pending global translation cache operation. 27. The method of claim 26 , wherein: starting the local binary translation thread comprises: determining, in the non-preemptive mode in the binary translation scheduler, whether a binary translation exists for the hotspot in a global translation cache; and starting, in a preemptive mode on the processor core and in response to determining that the binary translation does not exist for the hotspot, a translation thread to: (i) generate the binary translation for the hotspot and (ii) enqueue the binary translation for installation when completed, wherein enqueuing the binary translation for installation comprises generating the pending global translation cache operation; and further comprising: determining, in the non-preemptive mode and in the global thread, whether the binary translation has been enqueued for installation; and installing, in the preemptive mode and in the global thread, the binary translation into the global translation cache in response to determining that the binary translation has been enqueued for installation.