/* * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. *
*/
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);
};
#endif// SHARE_RUNTIME_STACKWATERMARKSET_HPP
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
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 ist noch experimentell.