Merge pull request #4637 from lioncash/jitcache JitCache: Get rid of reliance on the JIT global variable