8290074: Remove implicit arguments for RegisterMap constructor

Reviewed-by: eosterlund, tschatzl
This commit is contained in:
Axel Boldt-Christmas 2022-07-27 12:43:18 +00:00 committed by Erik Österlund
parent e804236f05
commit 2f3e494b80
40 changed files with 434 additions and 117 deletions

View file

@ -1055,7 +1055,10 @@ void JavaThread::handle_async_exception(oop java_throwable) {
// OptoRuntime from compiled code. Some runtime stubs (new, monitor_exit..)
// must deoptimize the caller before continuing, as the compiled exception
// handler table may not be valid.
RegisterMap reg_map(this, false);
RegisterMap reg_map(this,
RegisterMap::UpdateMap::skip,
RegisterMap::ProcessFrames::include,
RegisterMap::WalkContinuation::skip);
frame compiled_frame = f.sender(&reg_map);
if (!StressCompiledExceptionHandlers && compiled_frame.can_be_deoptimized()) {
Deoptimization::deoptimize(this, compiled_frame);
@ -1557,7 +1560,7 @@ void JavaThread::frames_do(void f(frame*, const RegisterMap* map)) {
// ignore if there is no stack
if (!has_last_Java_frame()) return;
// traverse the stack frames. Starts from top frame.
for (StackFrameStream fst(this, true /* update */, true /* process_frames */); !fst.is_done(); fst.next()) {
for (StackFrameStream fst(this, true /* update_map */, true /* process_frames */, false /* walk_cont */); !fst.is_done(); fst.next()) {
frame* fr = fst.current();
f(fr, fst.register_map());
}
@ -1705,7 +1708,10 @@ void JavaThread::print_stack_on(outputStream* st) {
ResourceMark rm(current_thread);
HandleMark hm(current_thread);
RegisterMap reg_map(this, true, true);
RegisterMap reg_map(this,
RegisterMap::UpdateMap::include,
RegisterMap::ProcessFrames::include,
RegisterMap::WalkContinuation::skip);
vframe* start_vf = platform_thread_last_java_vframe(&reg_map);
int count = 0;
for (vframe* f = start_vf; f != NULL; f = f->sender()) {
@ -1850,7 +1856,10 @@ void JavaThread::trace_stack() {
Thread* current_thread = Thread::current();
ResourceMark rm(current_thread);
HandleMark hm(current_thread);
RegisterMap reg_map(this, true, true);
RegisterMap reg_map(this,
RegisterMap::UpdateMap::include,
RegisterMap::ProcessFrames::include,
RegisterMap::WalkContinuation::skip);
trace_stack_from(last_java_vframe(&reg_map));
}