equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
82 JfrEmergencyDump::on_vm_shutdown(exception_handler); |
82 JfrEmergencyDump::on_vm_shutdown(exception_handler); |
83 } |
83 } |
84 } |
84 } |
85 |
85 |
86 void Jfr::weak_oops_do(BoolObjectClosure* is_alive, OopClosure* f) { |
86 void Jfr::weak_oops_do(BoolObjectClosure* is_alive, OopClosure* f) { |
87 LeakProfiler::oops_do(is_alive, f); |
87 if (LeakProfiler::is_running()) { |
|
88 LeakProfiler::oops_do(is_alive, f); |
|
89 } |
88 } |
90 } |
89 |
91 |
90 bool Jfr::on_flight_recorder_option(const JavaVMOption** option, char* delimiter) { |
92 bool Jfr::on_flight_recorder_option(const JavaVMOption** option, char* delimiter) { |
91 return JfrOptionSet::parse_flight_recorder_option(option, delimiter); |
93 return JfrOptionSet::parse_flight_recorder_option(option, delimiter); |
92 } |
94 } |