< prev index next >
src/share/vm/gc/shared/adaptiveSizePolicy.hpp
Print this page
rev 12310 : [mq]: gcinterface.patch
@@ -508,30 +508,12 @@
// Class that can be used to print information about the
// adaptive size policy at intervals specified by
// AdaptiveSizePolicyOutputInterval. Only print information
// if an adaptive size policy is in use.
class AdaptiveSizePolicyOutput : StackObj {
- static bool enabled() {
- return UseParallelGC &&
- UseAdaptiveSizePolicy &&
- log_is_enabled(Debug, gc, ergo);
- }
+ static bool enabled();
public:
- static void print() {
- if (enabled()) {
- Universe::heap()->size_policy()->print();
- }
- }
-
- static void print(AdaptiveSizePolicy* size_policy, uint count) {
- bool do_print =
- enabled() &&
- (AdaptiveSizePolicyOutputInterval > 0) &&
- (count % AdaptiveSizePolicyOutputInterval) == 0;
-
- if (do_print) {
- size_policy->print();
- }
- }
+ static void print();
+ static void print(AdaptiveSizePolicy* size_policy, uint count);
};
#endif // SHARE_VM_GC_SHARED_ADAPTIVESIZEPOLICY_HPP
< prev index next >