src/hotspot/share/jfr/jfr.cpp
changeset 58132 caa25ab47aca
parent 52569 1a534c7926cc
child 58157 9dca61a7df19
child 58863 c16ac7a2eba4
equal deleted inserted replaced
58131:3054503bad7d 58132:caa25ab47aca
     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 }