Print this page
rev 6909 : 8065361: Fixup headers and definitions for INCLUDE_TRACE
Reviewed-by: sla, stefank
Split |
Split |
Close |
Expand all |
Collapse all |
--- old/hotspot/src/share/vm/trace/traceBackend.hpp
+++ new/hotspot/src/share/vm/trace/traceBackend.hpp
1 1 /*
2 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 4 *
5 5 * This code is free software; you can redistribute it and/or modify it
6 6 * under the terms of the GNU General Public License version 2 only, as
7 7 * published by the Free Software Foundation.
8 8 *
9 9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 12 * version 2 for more details (a copy is included in the LICENSE file that
13 13 * accompanied this code).
14 14 *
15 15 * You should have received a copy of the GNU General Public License version
16 16 * 2 along with this work; if not, write to the Free Software Foundation,
17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
18 18 *
19 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 20 * or visit www.oracle.com if you need additional information or have any
21 21 * questions.
22 22 *
23 23 */
24 24 #ifndef SHARE_VM_TRACE_TRACEBACKEND_HPP
25 25 #define SHARE_VM_TRACE_TRACEBACKEND_HPP
26 26
27 27 #include "utilities/macros.hpp"
28 -
29 28 #if INCLUDE_TRACE
30 -
31 29 #include "runtime/globals.hpp"
32 30 #include "runtime/os.hpp"
33 31 #include "trace/traceTime.hpp"
34 32 #include "tracefiles/traceEventIds.hpp"
35 33
36 34 class TraceBackend {
37 35 public:
38 36 static bool enabled(void) {
39 37 return EnableTracing;
40 38 }
41 39
42 40 static bool is_event_enabled(TraceEventId id) {
43 41 return enabled();
44 42 }
45 43
46 44 static TracingTime time() {
47 45 return os::elapsed_counter();
48 46 }
49 47
50 48 static void on_unloading_classes(void) {
↓ open down ↓ |
10 lines elided |
↑ open up ↑ |
51 49 }
52 50 };
53 51
54 52 class TraceThreadData {
55 53 public:
56 54 TraceThreadData() {}
57 55 };
58 56
59 57 typedef TraceBackend Tracing;
60 58
61 -#else /* INCLUDE_TRACE */
62 -
59 +#else // !INCLUDE_TRACE
63 60 #include "trace/noTraceBackend.hpp"
64 -
65 -#endif /* INCLUDE_TRACE */
66 -#endif /* SHARE_VM_TRACE_TRACEBACKEND_HPP */
61 +#endif // INCLUDE_TRACE
62 +#endif // SHARE_VM_TRACE_TRACEBACKEND_HPP
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX