--- old/src/hotspot/share/jfr/jfr.cpp 2020-04-28 21:20:54.904975309 +0900 +++ new/src/hotspot/share/jfr/jfr.cpp 2020-04-28 21:20:54.784973884 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2019, 2020, 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 @@ -30,6 +30,7 @@ #include "jfr/recorder/checkpoint/jfrCheckpointManager.hpp" #include "jfr/recorder/repository/jfrEmergencyDump.hpp" #include "jfr/recorder/service/jfrOptionSet.hpp" +#include "jfr/recorder/repository/jfrRepository.hpp" #include "jfr/support/jfrThreadLocal.hpp" #include "runtime/java.hpp" @@ -101,6 +102,12 @@ } } +void Jfr::on_vm_error_report(outputStream* st) { + if (JfrRecorder::is_recording()) { + JfrRepository::on_vm_error_report(st); + } +} + void Jfr::weak_oops_do(BoolObjectClosure* is_alive, OopClosure* f) { if (LeakProfiler::is_running()) { LeakProfiler::weak_oops_do(is_alive, f);