/* * Copyright (c) 2019, 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. *
*/
template <ChunkFrames frame_kind, typename RegisterMapT> bool do_frame(const StackChunkFrameStream<frame_kind>& f, const RegisterMapT* map) { if (f.is_interpreted()) {
Method* m = f.to_frame().interpreter_frame_method();
_closure->do_method(m);
} elseif (f.is_compiled()) {
nmethod* nm = f.cb()->as_nmethod(); // The do_nmethod function takes care of having the right synchronization // when keeping the nmethod alive during concurrent execution.
_closure->do_nmethod(nm); // There is no need to mark the Method, as class redefinition will walk the // CodeCache, noting their Methods
} returntrue;
}
};
void InstanceStackChunkKlass::oop_oop_iterate_stack_slow(stackChunkOop chunk, OopIterateClosure* closure, MemRegion mr) { if (UseZGC || UseShenandoahGC) { // An OopClosure could apply barriers to a stack chunk. The side effects // of the load barriers could destroy derived pointers, which must be // processed before their base oop is processed. So we force processing // of derived pointers before applying the closures.
chunk->relativize_derived_pointers_concurrently();
}
OopIterateStackChunkFrameClosure frame_closure(closure, mr);
chunk->iterate_stack(&frame_closure);
}
#ifdef ASSERT
class DescribeStackChunkClosure {
stackChunkOop _chunk;
FrameValues _values;
RegisterMap _map; int _frame_no;
void InstanceStackChunkKlass::init_offset_of_stack() { // Cache the offset of the static fields in the Class instance
assert(_offset_of_stack == 0, "once");
_offset_of_stack = cast(vmClasses::StackChunk_klass())->size_helper() << LogHeapWordSize;
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 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 und die Messung sind noch experimentell.