Mercurial > hg > graal-compiler
diff src/share/vm/graal/graalCodeInstaller.cpp @ 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 | d006a6332db8 |
children | 57d600d3b504 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp Mon Feb 17 23:18:00 2014 +0100 +++ b/src/share/vm/graal/graalCodeInstaller.cpp Tue Feb 18 10:47:13 2014 -0800 @@ -422,7 +422,7 @@ jint id = HotSpotCompiledNmethod::id(compiled_code); if (id == -1) { // Make sure a valid compile_id is associated with every compile - id = CompileBroker::assign_compile_id(method, entry_bci); + id = CompileBroker::assign_compile_id_unlocked(Thread::current(), method, entry_bci); } result = GraalEnv::register_method(method, nm, entry_bci, &_offsets, _custom_stack_area_offset, &buffer, stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table, GraalCompiler::instance(), _debug_recorder, _dependencies, NULL, id, false, leaf_graph_ids, installed_code, speculation_log);