class frame; class JavaThread; class StackWatermark;
// A thread may have multiple StackWatermarks installed, for different unrelated client // applications of lazy stack processing. The StackWatermarks class is the thread-local // data structure used to store said watermarks. The StackWatermarkSet is the corresponding // AllStatic class you use to interact with watermarks from shared runtime code. It allows // hooks for all watermarks, or requesting specific action for specific client StackWatermark // instances (if they have been installed).
class StackWatermarks { friendclass StackWatermarkSet; private:
StackWatermark* _head;
public:
StackWatermarks();
~StackWatermarks();
};
class StackWatermarkSet : public AllStatic { private: static StackWatermark* head(JavaThread* jt); staticvoid set_head(JavaThread* jt, StackWatermark* watermark);
// Called when a thread is about to unwind a frame staticvoid before_unwind(JavaThread* jt);
// Called when a thread just unwound a frame staticvoid after_unwind(JavaThread* jt);
// Called by stack walkers when walking into a frame staticvoid on_iteration(JavaThread* jt, const frame& fr);
// Called to ensure that processing of the thread is started when waking up from safepoint staticvoid on_safepoint(JavaThread* jt);
// Called to ensure that processing of the thread is started staticvoid start_processing(JavaThread* jt, StackWatermarkKind kind);
// Returns true if all StackWatermarks have been started. staticbool processing_started(JavaThread* jt);
// Called to finish the processing of a thread staticvoid finish_processing(JavaThread* jt, void* context, StackWatermarkKind kind);
// The lowest watermark among the watermarks in the set (the first encountered // watermark in the set as you unwind frames) static uintptr_t lowest_watermark(JavaThread* jt);
};
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.