src/share/vm/services/classLoadingService.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
hotspot-npg Cdiff src/share/vm/services/classLoadingService.hpp
src/share/vm/services/classLoadingService.hpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2003, 2012, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2003, 2010, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 53,63 ****
public:
static void init();
static bool get_verbose() { return TraceClassLoading; }
static bool set_verbose(bool verbose);
! static void reset_trace_class_unloading();
static jlong loaded_class_count() {
return _classes_loaded_count->get_value() + _shared_classes_loaded_count->get_value();
}
static jlong unloaded_class_count() {
--- 53,63 ----
public:
static void init();
static bool get_verbose() { return TraceClassLoading; }
static bool set_verbose(bool verbose);
! static void reset_trace_class_unloading() NOT_MANAGEMENT_RETURN;
static jlong loaded_class_count() {
return _classes_loaded_count->get_value() + _shared_classes_loaded_count->get_value();
}
static jlong unloaded_class_count() {
*** 100,116 ****
}
static jlong class_method_data_size() {
return (UsePerfData ? _class_methods_size->get_value() : -1);
}
! static void notify_class_loaded(InstanceKlass* k, bool shared_class);
// All unloaded classes are non-shared
! static void notify_class_unloaded(InstanceKlass* k);
static void add_class_method_size(int size) {
if (UsePerfData) {
_class_methods_size->inc(size);
}
}
};
// FIXME: make this piece of code to be shared by M&M and JVMTI
class LoadedClassesEnumerator : public StackObj {
--- 100,119 ----
}
static jlong class_method_data_size() {
return (UsePerfData ? _class_methods_size->get_value() : -1);
}
! static void notify_class_loaded(InstanceKlass* k, bool shared_class)
! NOT_MANAGEMENT_RETURN;
// All unloaded classes are non-shared
! static void notify_class_unloaded(InstanceKlass* k) NOT_MANAGEMENT_RETURN;
static void add_class_method_size(int size) {
+ #if INCLUDE_MANAGEMENT
if (UsePerfData) {
_class_methods_size->inc(size);
}
+ #endif // INCLUDE_MANAGEMENT
}
};
// FIXME: make this piece of code to be shared by M&M and JVMTI
class LoadedClassesEnumerator : public StackObj {
src/share/vm/services/classLoadingService.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File