8367150: Add a header line to improve VMErrorCallback printing

Reviewed-by: stefank, ayang
This commit is contained in:
Axel Boldt-Christmas 2025-09-16 05:06:17 +00:00
parent 0fbae8050b
commit 76e464bcd5

View File

@ -1143,9 +1143,11 @@ void VMError::report(outputStream* st, bool _verbose) {
}
STEP_IF("printing registered callbacks", _verbose && _thread != nullptr);
size_t count = 0;
for (VMErrorCallback* callback = _thread->_vm_error_callbacks;
callback != nullptr;
callback = callback->_next) {
st->print_cr("VMErrorCallback %zu:", ++count);
callback->call(st);
st->cr();
}