public: // Each arch must define reset, save, restore // These are used by objects that only care about: // 1 - initializing a new state (thread creation, javaCalls) // 2 - saving a current state (javaCalls) // 3 - restoring an old state (javaCalls) // Note that whenever _last_Java_sp != NULL other anchor fields // must be valid. The profiler apparently depends on this.
void clear() { // clearing _last_Java_sp must be first
_last_Java_sp = NULL; // fence?
_last_Java_fp = NULL;
_last_Java_pc = NULL;
}
void set(intptr_t* sp, address pc, ZeroFrame* fp) { // In order to make sure the transition state is valid for "this" // We must clear _last_Java_sp before copying the rest of the new // data // // Hack Alert: Temporary bugfix for 4717480/4721647 To act like // previous version (pd_cache_state) don't NULL _last_Java_sp // unless the value is changing // if (_last_Java_sp != sp)
_last_Java_sp = NULL;
_last_Java_fp = fp;
_last_Java_pc = pc; // Must be last so profiler will always see valid frame if // has_last_frame() is true
_last_Java_sp = sp;
}
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.