Code caching only works outside environments which us optimistic typing and lazy compilation, which will both be the defaults for 8u40.
We need to support these so code caching can work. This will also dramatically help performance and warmup, by caching the final stable version of methods after no more erroneous type guesses can be made.
Not sure if this is a duplicate task. I can't find it in JIRA.