comparison src/share/vm/code/dependencies.cpp @ 17524:89152779163c

Merge with jdk8-b132
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 11:59:32 +0200
parents 4ca6dc0799b6 709018897c81
children 52b4284cb496
comparison
equal deleted inserted replaced
17450:45b45f902bed 17524:89152779163c
1371 // Statics are irrelevant to virtual call sites. 1371 // Statics are irrelevant to virtual call sites.
1372 if (m->is_static()) return false; 1372 if (m->is_static()) return false;
1373 1373
1374 // We could also return false if m does not yet appear to be 1374 // We could also return false if m does not yet appear to be
1375 // executed, if the VM version supports this distinction also. 1375 // executed, if the VM version supports this distinction also.
1376 // Default methods are considered "concrete" as well.
1376 return !m->is_abstract() && 1377 return !m->is_abstract() &&
1377 !InstanceKlass::cast(m->method_holder())->is_interface(); 1378 !m->is_overpass(); // error functions aren't concrete
1378 // TODO: investigate whether default methods should be
1379 // considered as "concrete" in this situation. For now they
1380 // are not.
1381 } 1379 }
1382 1380
1383 1381
1384 Klass* Dependencies::find_finalizable_subclass(Klass* k) { 1382 Klass* Dependencies::find_finalizable_subclass(Klass* k) {
1385 if (k->is_interface()) return NULL; 1383 if (k->is_interface()) return NULL;