--- old/src/hotspot/share/ci/ciMethod.cpp 2019-01-30 13:51:48.000000000 -0800 +++ new/src/hotspot/share/ci/ciMethod.cpp 2019-01-30 13:51:47.000000000 -0800 @@ -89,6 +89,7 @@ _is_c2_compilable = !h_m()->is_not_c2_compilable(); _can_be_parsed = true; _has_reserved_stack_access = h_m()->has_reserved_stack_access(); + _is_overpass = h_m()->is_overpass(); // Lazy fields, filled in on demand. Require allocation. _code = NULL; _exception_handlers = NULL; @@ -718,7 +719,7 @@ VM_ENTRY_MARK; // Disable CHA for default methods for now - if (root_m->get_Method()->is_default_method()) { + if (root_m->is_default_method()) { return NULL; } @@ -758,6 +759,7 @@ // with the same name but different vtable indexes. return NULL; } + assert(!target()->is_abstract(), "not allowed"); return CURRENT_THREAD_ENV->get_method(target()); } @@ -874,6 +876,14 @@ } // ------------------------------------------------------------------ +ciKlass* ciMethod::get_declared_method_holder_at_bci(int bci) { + ciBytecodeStream iter(this); + iter.reset_to_bci(bci); + iter.next(); + return iter.get_declared_method_holder(); +} + +// ------------------------------------------------------------------ // Adjust a CounterData count to be commensurate with // interpreter_invocation_count. If the MDO exists for // only 25% of the time the method exists, then the