It won't in general.
Doing so is a feature of high-end VM runtimes like the state of the art JVMs or JS runtimes.