8340109: Ubsan: ciEnv.cpp:1660:65: runtime error: member call on null pointer of type 'struct CompileTask'

Reviewed-by: kvn, lucy
This commit is contained in:
Matthias Baesken 2024-10-02 07:58:17 +00:00
parent 52c2ea65c4
commit efe3573b9b

View File

@ -1616,7 +1616,10 @@ void ciEnv::dump_replay_data_helper(outputStream* out) {
for (int i = 0; i < objects->length(); i++) {
objects->at(i)->dump_replay_data(out);
}
dump_compile_data(out);
if (this->task() != nullptr) {
dump_compile_data(out);
}
out->flush();
}