8036100: Default method returns true for a while, and then returns false

Reviewed-by: kvn, jrose
This commit is contained in:
Vladimir Ivanov 2014-03-04 02:33:10 -08:00
parent 1dbe60a475
commit fc6e8666a1
2 changed files with 63 additions and 0 deletions

View file

@ -724,6 +724,11 @@ ciMethod* ciMethod::find_monomorphic_target(ciInstanceKlass* caller,
VM_ENTRY_MARK;
// Disable CHA for default methods for now
if (root_m->get_Method()->is_default_method()) {
return NULL;
}
methodHandle target;
{
MutexLocker locker(Compile_lock);