split the JIT memory management code out from the main JIT logic into its