/* * Copyright (c) 2021, 2022, 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 MemRegion; class RegisterMap; class VMRegImpl; typedef VMRegImpl* VMReg;
// A continuation stack-chunk oop. // See InstanceStackChunkKlass for a description of continuation stack-chunks. // // size and sp are in machine words // max_size is the maximum space a thawed chunk would take up on the stack, *not* including top-most frame's metadata class stackChunkOopDesc : public instanceOopDesc { public: enumclass BarrierType { Load, Store };
// Chunk flags. // FLAG_HAS_INTERPRETED_FRAMES actually means "thaw slow because of some content-based chunk condition" // It is set whenever we freeze slow, but generally signifies there might be interpreted/deoptimized/stub frames staticconst uint8_t FLAG_HAS_INTERPRETED_FRAMES = 1 << 0; staticconst uint8_t FLAG_CLAIM_RELATIVIZE = 1 << 1; // Only one thread claims relativization of derived pointers staticconst uint8_t FLAG_NOTIFY_RELATIVIZE = 1 << 2; // Someone is waiting for relativization to complete staticconst uint8_t FLAG_GC_MODE = 1 << 3; // Once true it and FLAG_HAS_INTERPRETED_FRAMES can't change staticconst uint8_t FLAG_HAS_BITMAP = 1 << 4; // Can only be true if FLAG_GC_MODE is true
// Returns a relative frame (with offset_sp, offset_unextended_sp, and offset_fp) that can be held // during safepoints. This is orthogonal to the relativizing of the actual content of interpreted frames. // To be used, frame objects need to be derelativized with `derelativize`. inline frame relativize(frame fr) const; inline frame derelativize(frame fr) const;
// Access to relativized interpreter frames (both the frame object and frame content are relativized) inline Method* interpreter_frame_method(const frame& fr); inline address interpreter_frame_bcp(const frame& fr); inline intptr_t* interpreter_frame_expression_stack_at(const frame& fr, int index) const; inline intptr_t* interpreter_frame_local_at(const frame& fr, int index) const;
int num_java_frames() const;
inlinevoid copy_from_stack_to_chunk(intptr_t* from, intptr_t* to, int size); inlinevoid copy_from_chunk_to_stack(intptr_t* from, intptr_t* to, int size);
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.