Mercurial > hg > truffle
comparison src/share/vm/services/runtimeService.cpp @ 6854:fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
Summary: Change makefiles so that targets and parameters can be overridden by alternate makefiles.
Reviewed-by: dholmes, coleenp
author | jprovino |
---|---|
date | Wed, 10 Oct 2012 14:35:58 -0400 |
parents | 436b4a3231bf |
children | db9981fd3124 |
comparison
equal
deleted
inserted
replaced
6830:81e878c53615 | 6854:fb19af007ffc |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2012, 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. |
33 #ifndef USDT2 | 33 #ifndef USDT2 |
34 HS_DTRACE_PROBE_DECL(hs_private, safepoint__begin); | 34 HS_DTRACE_PROBE_DECL(hs_private, safepoint__begin); |
35 HS_DTRACE_PROBE_DECL(hs_private, safepoint__end); | 35 HS_DTRACE_PROBE_DECL(hs_private, safepoint__end); |
36 #endif /* !USDT2 */ | 36 #endif /* !USDT2 */ |
37 | 37 |
38 #if INCLUDE_MANAGEMENT | |
38 TimeStamp RuntimeService::_app_timer; | 39 TimeStamp RuntimeService::_app_timer; |
39 TimeStamp RuntimeService::_safepoint_timer; | 40 TimeStamp RuntimeService::_safepoint_timer; |
40 PerfCounter* RuntimeService::_sync_time_ticks = NULL; | 41 PerfCounter* RuntimeService::_sync_time_ticks = NULL; |
41 PerfCounter* RuntimeService::_total_safepoints = NULL; | 42 PerfCounter* RuntimeService::_total_safepoints = NULL; |
42 PerfCounter* RuntimeService::_safepoint_time_ticks = NULL; | 43 PerfCounter* RuntimeService::_safepoint_time_ticks = NULL; |
99 char capabilities[65]; | 100 char capabilities[65]; |
100 size_t len = sizeof(capabilities); | 101 size_t len = sizeof(capabilities); |
101 memset((void*) capabilities, '0', len); | 102 memset((void*) capabilities, '0', len); |
102 capabilities[len-1] = '\0'; | 103 capabilities[len-1] = '\0'; |
103 capabilities[0] = AttachListener::is_attach_supported() ? '1' : '0'; | 104 capabilities[0] = AttachListener::is_attach_supported() ? '1' : '0'; |
104 #ifdef KERNEL | 105 #if INCLUDE_SERVICES |
105 capabilities[1] = '1'; | 106 capabilities[1] = '1'; |
106 #endif // KERNEL | 107 #endif // INCLUDE_SERVICES |
107 PerfDataManager::create_string_constant(SUN_RT, "jvmCapabilities", | 108 PerfDataManager::create_string_constant(SUN_RT, "jvmCapabilities", |
108 capabilities, CHECK); | 109 capabilities, CHECK); |
109 } | 110 } |
110 } | 111 } |
111 | 112 |
203 void RuntimeService::record_thread_interrupt_signaled_count() { | 204 void RuntimeService::record_thread_interrupt_signaled_count() { |
204 if (UsePerfData) { | 205 if (UsePerfData) { |
205 _thread_interrupt_signaled_count->inc(); | 206 _thread_interrupt_signaled_count->inc(); |
206 } | 207 } |
207 } | 208 } |
209 | |
210 #endif // INCLUDE_MANAGEMENT |