Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
13968:6c6d1eacc398 | 13969:fe034af88233 |
---|---|
420 methodHandle method = getMethodFromHotSpotMethod(HotSpotCompiledNmethod::method(compiled_code)); | 420 methodHandle method = getMethodFromHotSpotMethod(HotSpotCompiledNmethod::method(compiled_code)); |
421 jint entry_bci = HotSpotCompiledNmethod::entryBCI(compiled_code); | 421 jint entry_bci = HotSpotCompiledNmethod::entryBCI(compiled_code); |
422 jint id = HotSpotCompiledNmethod::id(compiled_code); | 422 jint id = HotSpotCompiledNmethod::id(compiled_code); |
423 if (id == -1) { | 423 if (id == -1) { |
424 // Make sure a valid compile_id is associated with every compile | 424 // Make sure a valid compile_id is associated with every compile |
425 id = CompileBroker::assign_compile_id(method, entry_bci); | 425 id = CompileBroker::assign_compile_id_unlocked(Thread::current(), method, entry_bci); |
426 } | 426 } |
427 result = GraalEnv::register_method(method, nm, entry_bci, &_offsets, _custom_stack_area_offset, &buffer, stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table, | 427 result = GraalEnv::register_method(method, nm, entry_bci, &_offsets, _custom_stack_area_offset, &buffer, stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table, |
428 GraalCompiler::instance(), _debug_recorder, _dependencies, NULL, id, false, leaf_graph_ids, installed_code, speculation_log); | 428 GraalCompiler::instance(), _debug_recorder, _dependencies, NULL, id, false, leaf_graph_ids, installed_code, speculation_log); |
429 cb = nm; | 429 cb = nm; |
430 } | 430 } |