< prev index next >
src/share/vm/c1/c1_Runtime1.cpp
Print this page
rev 10298 : 8147978: Remove Method::_method_data for C1
Summary: Method::_method_data field removed when not using C2 or JVMCI
Reviewed-by: dholmes, kvn
@@ -1500,10 +1500,11 @@
nmethod* nm = CodeCache::find_nmethod(caller_frame.pc());
assert (nm != NULL, "no more nmethod?");
nm->make_not_entrant();
methodHandle m(nm->method());
+ if (ProfileInterpreter) {
MethodData* mdo = m->method_data();
if (mdo == NULL && !HAS_PENDING_EXCEPTION) {
// Build an MDO. Ignore errors like OutOfMemory;
// that simply means we won't have an MDO to update.
@@ -1516,10 +1517,11 @@
}
if (mdo != NULL) {
mdo->inc_trap_count(Deoptimization::Reason_none);
}
+ }
if (TracePredicateFailedTraps) {
stringStream ss1, ss2;
vframeStream vfst(thread);
methodHandle inlinee = methodHandle(vfst.method());
< prev index next >