7021531: lock ordering problems after fix for 6354181

Reviewed-by: kvn, jrose
This commit is contained in:
Tom Rodriguez 2011-02-22 15:26:36 -08:00
parent 4b3ada699d
commit 8967db2c35
3 changed files with 30 additions and 0 deletions

View file

@ -413,6 +413,7 @@ ciKlass* ciEnv::get_klass_by_name_impl(ciKlass* accessing_klass,
}
KlassHandle found_klass;
{
ttyUnlocker ttyul; // release tty lock to avoid ordering problems
MutexLocker ml(Compile_lock);
klassOop kls;
if (!require_local) {