if (last_frame.is_safepoint_blob_frame()) {
last_frame = last_frame.sender(®ister_map);
}
ResourceMark rm; if (_deopt != NULL && last_frame.is_compiled_frame() && last_frame.can_be_deoptimized()) {
CloseScopedMemoryFindOopClosure cl(_deopt);
CompiledMethod* cm = last_frame.cb()->as_compiled_method();
/* FIXME: this doesn't work if reachability fences are violated by C2 last_frame.oops_do(&cl,NULL,®ister_map); if(cl.found()){ //Found the deopt oop in a compiled method; deoptimize. Deoptimization::deoptimize(jt,last_frame); }
so... we unconditionally deoptimize, for now: */
Deoptimization::deoptimize(jt, last_frame);
}
constint max_critical_stack_depth = 10; int depth = 0; for (vframeStream stream(jt); !stream.at_end(); stream.next()) {
Method* m = stream.method(); if (m->is_scoped()) {
StackValueCollection* locals = stream.asJavaVFrame()->locals(); for (int i = 0; i < locals->size(); i++) {
StackValue* var = locals->at(i); if (var->type() == T_OBJECT) { if (var->get_obj() == JNIHandles::resolve(_deopt)) {
assert(depth < max_critical_stack_depth, "can't have more than %d critical frames", max_critical_stack_depth);
_found = true; return;
}
}
} break;
}
depth++; #ifndef ASSERT if (depth >= max_critical_stack_depth) { break;
} #endif
}
}
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.