1.1 --- a/src/share/vm/services/threadService.hpp Fri Jan 07 03:38:19 2011 -0800 1.2 +++ b/src/share/vm/services/threadService.hpp Fri Jan 07 10:42:32 2011 -0500 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -65,6 +65,7 @@ 1.11 1.12 static bool _thread_monitoring_contention_enabled; 1.13 static bool _thread_cpu_time_enabled; 1.14 + static bool _thread_allocated_memory_enabled; 1.15 1.16 // Need to keep the list of thread dump result that 1.17 // keep references to methodOop since thread dump can be 1.18 @@ -83,6 +84,9 @@ 1.19 static bool set_thread_cpu_time_enabled(bool flag); 1.20 static bool is_thread_cpu_time_enabled() { return _thread_cpu_time_enabled; } 1.21 1.22 + static bool set_thread_allocated_memory_enabled(bool flag); 1.23 + static bool is_thread_allocated_memory_enabled() { return _thread_cpu_time_enabled; } 1.24 + 1.25 static jlong get_total_thread_count() { return _total_threads_count->get_value(); } 1.26 static jlong get_peak_thread_count() { return _peak_threads_count->get_value(); } 1.27 static jlong get_live_thread_count() { return _live_threads_count->get_value() - _exiting_threads_count; }