src/hotspot/share/ci/ciEnv.cpp
changeset 55253 3c905e67e380
parent 54847 59ea39bb2809
child 55273 64b76867851b
--- 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.