--- old/src/hotspot/share/ci/ciEnv.cpp 2019-05-31 23:04:21.000000000 +0300 +++ new/src/hotspot/share/ci/ciEnv.cpp 2019-05-31 23:04:21.000000000 +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.