annotate src/share/vm/utilities/dtrace.hpp @ 12823:b756e7a2ec33

Added tag jdk-9+181 for changeset 4a443796f6f5
author prr
date Thu, 03 Aug 2017 18:56:57 +0000
parents a00b8f42c4c4
children
rev   line source
duke@0 1 /*
coleenp@3713 2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
coleenp@3713 3 * Copyright (c) 2009, 2012 Red Hat, Inc.
duke@0 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 5 *
duke@0 6 * This code is free software; you can redistribute it and/or modify it
duke@0 7 * under the terms of the GNU General Public License version 2 only, as
duke@0 8 * published by the Free Software Foundation.
duke@0 9 *
duke@0 10 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 13 * version 2 for more details (a copy is included in the LICENSE file that
duke@0 14 * accompanied this code).
duke@0 15 *
duke@0 16 * You should have received a copy of the GNU General Public License version
duke@0 17 * 2 along with this work; if not, write to the Free Software Foundation,
duke@0 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 19 *
trims@1472 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1472 21 * or visit www.oracle.com if you need additional information or have any
trims@1472 22 * questions.
duke@0 23 *
duke@0 24 */
duke@0 25
stefank@1879 26 #ifndef SHARE_VM_UTILITIES_DTRACE_HPP
stefank@1879 27 #define SHARE_VM_UTILITIES_DTRACE_HPP
stefank@1879 28
dcubed@2767 29 #if defined(DTRACE_ENABLED)
duke@0 30
duke@0 31 #include <sys/sdt.h>
duke@0 32
duke@0 33 #define DTRACE_ONLY(x) x
duke@0 34 #define NOT_DTRACE(x)
duke@0 35
coleenp@3713 36 #if defined(SOLARIS)
jcoomes@1467 37 // Work around dtrace tail call bug 6672627 until it is fixed in solaris 10.
jcoomes@1467 38 #define HS_DTRACE_WORKAROUND_TAIL_CALL_BUG() \
jcoomes@1467 39 do { volatile size_t dtrace_workaround_tail_call_bug = 1; } while (0)
sla@5874 40 #elif defined(LINUX)
sla@5874 41 #define HS_DTRACE_WORKAROUND_TAIL_CALL_BUG()
sla@5874 42 #elif defined(__APPLE__)
sla@5874 43 #define HS_DTRACE_WORKAROUND_TAIL_CALL_BUG()
sla@5874 44 #include <sys/types.h>
sla@5874 45 #else
sla@5874 46 #error "dtrace enabled for unknown os"
sla@5874 47 #endif /* defined(SOLARIS) */
sla@5874 48
sla@5831 49 #include "dtracefiles/hotspot.h"
sla@5831 50 #include "dtracefiles/hotspot_jni.h"
sla@5831 51 #include "dtracefiles/hs_private.h"
dcubed@2767 52
dcubed@2767 53 #else /* defined(DTRACE_ENABLED) */
duke@0 54
duke@0 55 #define DTRACE_ONLY(x)
duke@0 56 #define NOT_DTRACE(x) x
duke@0 57
dcubed@2767 58 #define HS_DTRACE_WORKAROUND_TAIL_CALL_BUG()
dcubed@2767 59
sla@5934 60 #include "dtrace_disabled.hpp"
dcubed@2767 61
dcubed@2767 62 #endif /* defined(DTRACE_ENABLED) */
dcubed@2767 63
stefank@1879 64 #endif // SHARE_VM_UTILITIES_DTRACE_HPP