comparison src/share/vm/compiler/compileBroker.hpp @ 13969:fe034af88233

Acquire proper locks before calling assign_compile_id
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Tue, 18 Feb 2014 10:47:13 -0800
parents b1838411e896
children d8041d695d19
comparison
equal deleted inserted replaced
13968:6c6d1eacc398 13969:fe034af88233
319 319
320 static CompilerThread* make_compiler_thread(const char* name, CompileQueue* queue, CompilerCounters* counters, AbstractCompiler* comp, TRAPS); 320 static CompilerThread* make_compiler_thread(const char* name, CompileQueue* queue, CompilerCounters* counters, AbstractCompiler* comp, TRAPS);
321 static void init_compiler_threads(int c1_compiler_count, int c2_compiler_count); 321 static void init_compiler_threads(int c1_compiler_count, int c2_compiler_count);
322 static bool compilation_is_complete (methodHandle method, int osr_bci, int comp_level); 322 static bool compilation_is_complete (methodHandle method, int osr_bci, int comp_level);
323 static bool compilation_is_prohibited(methodHandle method, int osr_bci, int comp_level); 323 static bool compilation_is_prohibited(methodHandle method, int osr_bci, int comp_level);
324 static uint assign_compile_id (methodHandle method, int osr_bci);
324 static bool is_compile_blocking (methodHandle method, int osr_bci); 325 static bool is_compile_blocking (methodHandle method, int osr_bci);
325 static void preload_classes (methodHandle method, TRAPS); 326 static void preload_classes (methodHandle method, TRAPS);
326 327
327 static CompileTask* create_compile_task(CompileQueue* queue, 328 static CompileTask* create_compile_task(CompileQueue* queue,
328 int compile_id, 329 int compile_id,
383 int comp_level, 384 int comp_level,
384 methodHandle hot_method, 385 methodHandle hot_method,
385 int hot_count, 386 int hot_count,
386 const char* comment, Thread* thread); 387 const char* comment, Thread* thread);
387 388
388 static uint assign_compile_id (methodHandle method, int osr_bci); 389 // Acquire any needed locks and assign a compile id
390 static uint assign_compile_id_unlocked(Thread* thread, methodHandle method, int osr_bci);
389 391
390 static void compiler_thread_loop(); 392 static void compiler_thread_loop();
391 static uint get_compilation_id() { return _compilation_id; } 393 static uint get_compilation_id() { return _compilation_id; }
392 394
393 // Set _should_block. 395 // Set _should_block.