Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.hpp Mon Feb 17 23:18:00 2014 +0100 +++ b/src/share/vm/compiler/compileBroker.hpp Tue Feb 18 10:47:13 2014 -0800 @@ -321,6 +321,7 @@ static void init_compiler_threads(int c1_compiler_count, int c2_compiler_count); static bool compilation_is_complete (methodHandle method, int osr_bci, int comp_level); static bool compilation_is_prohibited(methodHandle method, int osr_bci, int comp_level); + static uint assign_compile_id (methodHandle method, int osr_bci); static bool is_compile_blocking (methodHandle method, int osr_bci); static void preload_classes (methodHandle method, TRAPS); @@ -385,7 +386,8 @@ int hot_count, const char* comment, Thread* thread); - static uint assign_compile_id (methodHandle method, int osr_bci); + // Acquire any needed locks and assign a compile id + static uint assign_compile_id_unlocked(Thread* thread, methodHandle method, int osr_bci); static void compiler_thread_loop(); static uint get_compilation_id() { return _compilation_id; }