/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#ifndef SHARE_VM_SERVICES_MANAGEMENT_HPP
#define SHARE_VM_SERVICES_MANAGEMENT_HPP
#include "memory/allocation.hpp"
#include "runtime/handles.hpp"
class OopClosure;
class ThreadSnapshot;
private:
// Management klasses
public:
static void init();
static void initialize(TRAPS);
static void oops_do(OopClosure* f);
static void* get_jmm_interface(int version);
static void get_loaded_classes(JavaThread* cur_thread, GrowableArray<KlassHandle>* klass_handle_array);
static void record_vm_init_completed() {
// Initialize the timestamp to get the current time
// Update the timestamp to the vm init done time
}
return _begin_vm_creation_time->get_value();
}
return _vm_init_done_time->get_value();
}
// methods to return a klassOop.
static instanceOop create_thread_info_instance(ThreadSnapshot* snapshot, objArrayHandle monitors_array, typeArrayHandle depths_array, objArrayHandle synchronizers_array, TRAPS);
};
private:
public:
TraceVmCreationTime() {}
~TraceVmCreationTime() {}
void start()
/**
* Only call this if initialization completes successfully; it will
* crash if PerfMemory_exit() has already been called (usually by
* os::shutdown() when there was an initialization failure).
*/
void end()
};
#endif // SHARE_VM_SERVICES_MANAGEMENT_HPP