equal
deleted
inserted
replaced
51 #include "prims/jvmtiExport.hpp" |
51 #include "prims/jvmtiExport.hpp" |
52 #include "runtime/init.hpp" |
52 #include "runtime/init.hpp" |
53 #include "runtime/reflection.hpp" |
53 #include "runtime/reflection.hpp" |
54 #include "runtime/sharedRuntime.hpp" |
54 #include "runtime/sharedRuntime.hpp" |
55 #include "runtime/thread.inline.hpp" |
55 #include "runtime/thread.inline.hpp" |
|
56 #include "trace/tracing.hpp" |
56 #include "utilities/dtrace.hpp" |
57 #include "utilities/dtrace.hpp" |
57 #include "utilities/macros.hpp" |
58 #include "utilities/macros.hpp" |
58 #ifdef COMPILER1 |
59 #ifdef COMPILER1 |
59 #include "c1/c1_Runtime1.hpp" |
60 #include "c1/c1_Runtime1.hpp" |
60 #endif |
61 #endif |
1139 // Record the first failure reason. |
1140 // Record the first failure reason. |
1140 _failure_reason = reason; |
1141 _failure_reason = reason; |
1141 } |
1142 } |
1142 } |
1143 } |
1143 |
1144 |
|
1145 void ciEnv::report_failure(const char* reason) { |
|
1146 // Create and fire JFR event |
|
1147 EventCompilerFailure event; |
|
1148 if (event.should_commit()) { |
|
1149 event.set_compileID(compile_id()); |
|
1150 event.set_failure(reason); |
|
1151 event.commit(); |
|
1152 } |
|
1153 } |
|
1154 |
1144 // ------------------------------------------------------------------ |
1155 // ------------------------------------------------------------------ |
1145 // ciEnv::record_method_not_compilable() |
1156 // ciEnv::record_method_not_compilable() |
1146 void ciEnv::record_method_not_compilable(const char* reason, bool all_tiers) { |
1157 void ciEnv::record_method_not_compilable(const char* reason, bool all_tiers) { |
1147 int new_compilable = |
1158 int new_compilable = |
1148 all_tiers ? MethodCompilable_never : MethodCompilable_not_at_tier ; |
1159 all_tiers ? MethodCompilable_never : MethodCompilable_not_at_tier ; |