Skip to content

Commit

Permalink
move check up in method
Browse files Browse the repository at this point in the history
  • Loading branch information
MBaesken committed Oct 25, 2024
1 parent d28c366 commit f019b47
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/hotspot/share/ci/ciEnv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,10 @@ void ciEnv::dump_replay_data_helper(outputStream* out) {
NoSafepointVerifier no_safepoint;
ResourceMark rm;

if (this->task() == nullptr) {
return;
}

dump_replay_data_version(out);
#if INCLUDE_JVMTI
out->print_cr("JvmtiExport can_access_local_variables %d", _jvmti_can_access_local_variables);
Expand All @@ -1611,17 +1615,13 @@ void ciEnv::dump_replay_data_helper(outputStream* out) {

// The very first entry is the InstanceKlass of the root method of the current compilation in order to get the right
// protection domain to load subsequent classes during replay compilation.
if (this->task() != nullptr) {
ciInstanceKlass::dump_replay_instanceKlass(out, task()->method()->method_holder());
}
ciInstanceKlass::dump_replay_instanceKlass(out, task()->method()->method_holder());

for (int i = 0; i < objects->length(); i++) {
objects->at(i)->dump_replay_data(out);
}

if (this->task() != nullptr) {
dump_compile_data(out);
}
dump_compile_data(out);
out->flush();
}

Expand Down

0 comments on commit f019b47

Please sign in to comment.