comparison src/hotspot/share/compiler/compileBroker.hpp @ 54482:c914170817d4

8221853: Data race in compile broker (set_last_compile) Summary: Remove the debug code provoking it Reviewed-by: kvn, thartmann
author jcbeyler
date Tue, 09 Apr 2019 19:34:05 -0700
parents 9807daeb47c4
children 1dc9bf9d016b
comparison
equal deleted inserted replaced
10:1d41995b7dad 11:8f122870be45
171 171
172 // These counters are used for assigning id's to each compilation 172 // These counters are used for assigning id's to each compilation
173 static volatile jint _compilation_id; 173 static volatile jint _compilation_id;
174 static volatile jint _osr_compilation_id; 174 static volatile jint _osr_compilation_id;
175 175
176 static int _last_compile_type;
177 static int _last_compile_level;
178 static char _last_method_compiled[name_buffer_length];
179
180 static CompileQueue* _c2_compile_queue; 176 static CompileQueue* _c2_compile_queue;
181 static CompileQueue* _c1_compile_queue; 177 static CompileQueue* _c1_compile_queue;
182 178
183 // performance counters 179 // performance counters
184 static PerfCounter* _perf_total_compilation; 180 static PerfCounter* _perf_total_compilation;
252 #endif 248 #endif
253 249
254 static void invoke_compiler_on_method(CompileTask* task); 250 static void invoke_compiler_on_method(CompileTask* task);
255 static void post_compile(CompilerThread* thread, CompileTask* task, bool success, ciEnv* ci_env, 251 static void post_compile(CompilerThread* thread, CompileTask* task, bool success, ciEnv* ci_env,
256 int compilable, const char* failure_reason); 252 int compilable, const char* failure_reason);
257 static void set_last_compile(CompilerThread *thread, const methodHandle& method, bool is_osr, int comp_level); 253 static void update_compile_perf_data(CompilerThread *thread, const methodHandle& method, bool is_osr);
254
258 static void push_jni_handle_block(); 255 static void push_jni_handle_block();
259 static void pop_jni_handle_block(); 256 static void pop_jni_handle_block();
260 static void collect_statistics(CompilerThread* thread, elapsedTimer time, CompileTask* task); 257 static void collect_statistics(CompilerThread* thread, elapsedTimer time, CompileTask* task);
261 258
262 static void compile_method_base(const methodHandle& method, 259 static void compile_method_base(const methodHandle& method,
380 #endif 377 #endif
381 378
382 // Print a detailed accounting of compilation time 379 // Print a detailed accounting of compilation time
383 static void print_times(bool per_compiler = true, bool aggregate = true); 380 static void print_times(bool per_compiler = true, bool aggregate = true);
384 381
385 // Debugging output for failure
386 static void print_last_compile();
387
388 // compiler name for debugging 382 // compiler name for debugging
389 static const char* compiler_name(int comp_level); 383 static const char* compiler_name(int comp_level);
390 384
391 // Provide access to compiler thread Java objects 385 // Provide access to compiler thread Java objects
392 static jobject compiler1_object(int idx) { 386 static jobject compiler1_object(int idx) {