// // An object for encapsulating the machine/os dependent part of a JavaThread frame state // class JavaThread; class MacroAssembler; class UpcallLinker; class ZeroFrame;
private: // // Whenever _last_Java_sp != NULL other anchor fields MUST be valid! // The stack may not be walkable [check with walkable() ] but the values must be valid. // The profiler apparently depends on this. //
intptr_t* volatile _last_Java_sp;
// Whenever we call from Java to native we can not be assured that the return // address that composes the last_Java_frame will be in an accessible location // so calls from Java to native store that pc (or one good enough to locate // the oopmap) in the frame anchor. Since the frames that call from Java to // native are never deoptimized we never need to patch the pc and so this // is acceptable. volatile address _last_Java_pc;
// tells whether the last Java frame is set // It is important that when last_Java_sp != NULL that the rest of the frame // anchor (including platform specific) all be valid.
bool has_last_Java_frame() const { return _last_Java_sp != NULL; } // This is very dangerous unless sp == NULL // Invalidate the anchor so that has_last_frame is false // and no one should look at the other fields. void zap(void) { _last_Java_sp = NULL; }
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.