comparison src/share/vm/compiler/compileBroker.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 9161ed8ce796
children 800057208a2c
comparison
equal deleted inserted replaced
13968:6c6d1eacc398 13969:fe034af88233
1470 return 0; 1470 return 0;
1471 } 1471 }
1472 1472
1473 1473
1474 // ------------------------------------------------------------------ 1474 // ------------------------------------------------------------------
1475 // CompileBroker::assign_compile_id_unlocked
1476 //
1477 // Public wrapper for assign_compile_id that acquires the needed locks
1478 uint CompileBroker::assign_compile_id_unlocked(Thread* thread, methodHandle method, int osr_bci) {
1479 MutexLocker locker(MethodCompileQueue_lock, thread);
1480 return assign_compile_id(method, osr_bci);
1481 }
1482
1483
1484 // ------------------------------------------------------------------
1475 // CompileBroker::is_compile_blocking 1485 // CompileBroker::is_compile_blocking
1476 // 1486 //
1477 // Should the current thread be blocked until this compilation request 1487 // Should the current thread be blocked until this compilation request
1478 // has been fulfilled? 1488 // has been fulfilled?
1479 bool CompileBroker::is_compile_blocking(methodHandle method, int osr_bci) { 1489 bool CompileBroker::is_compile_blocking(methodHandle method, int osr_bci) {