http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2018-October/030915.html
Aleksey:
I want to run our performance tests with usual compiler configuration, and make VM fail if/when we fail to compile the method for some reason -- probably due to VM bugs -- instead of silently regressing performance, and leaving me scratching my head what had happened. This might be of interest for high-performance users too, if they want to treat current graceful degradation as error condition instead.
This is similar to CompileTheWorld, except it does normal compilation with usual profiling and optimization, basically running in the mode we would expect production to run.
Vladimir:
Okay, in such case I would suggest to make general (not Shenandoah specific) diagnostic flag similar to AbortVMOnException flag. Something like AbortVMOnCompileFailure. And code should by in CompileBroker::post_compile().
EDIT: The final option name is -XX:+AbortVMOnCompilationFailure.