diff -r 6502d6a92fe2 -r 3c905e67e380 src/hotspot/share/ci/ciEnv.cpp --- a/src/hotspot/share/ci/ciEnv.cpp Thu Jun 06 13:45:59 2019 +0300 +++ b/src/hotspot/share/ci/ciEnv.cpp Thu Jun 06 13:46:01 2019 +0300 @@ -991,6 +991,11 @@ record_failure("DTrace flags change invalidated dependencies"); } + if (!failing() && target->needs_clinit_barrier() && + target->holder()->is_in_error_state()) { + record_failure("method holder is in error state"); + } + if (!failing()) { if (log() != NULL) { // Log the dependencies which this compilation declares.