The HotSpot compilers attempt to OSR-compile huge methods (greater than 8000 bytes of bytecodes). The HotSpot compilationPolicy avoids entry-compilation of such methods.
Due to the entry-compilation policy, the compilers are not well-tested on huge methods,
and strange crashes (see 6360541) have been observed on OSR compiles of such.
The OSR and entry policies should be made consistent.
See PRT webrev:
Fix compilationPolicy.cpp to check canBeCompiled() on back-branch events, as it does on entry events.