src/hotspot/share/utilities/macros.hpp
author naoto
Tue, 09 Jul 2019 08:05:38 -0700
changeset 55627 9c1885fb2a42
parent 54573 b73893f7fee3
child 59053 ba6c248cae19
permissions -rw-r--r--
8227127: Era designator not displayed correctly using the COMPAT provider Reviewed-by: rriggs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52925
diff changeset
     2
 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5403
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5403
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5403
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52925
diff changeset
    25
#ifndef SHARE_UTILITIES_MACROS_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52925
diff changeset
    26
#define SHARE_UTILITIES_MACROS_HPP
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6466
diff changeset
    27
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
// Use this to mark code that needs to be cleaned up (for development only)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
#define NEEDS_CLEANUP
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
// Makes a string of the argument (which is not macro-expanded)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
#define STR(a)  #a
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
// Makes a string of the macro expansion of a
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
#define XSTR(a) STR(a)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
38704
eb96c446c3a5 8156548: gc/gctests/StringInternSyncWithGC2 fails with Test level exit status: 151
kbarrett
parents: 37272
diff changeset
    37
// Allow commas in macro arguments.
eb96c446c3a5 8156548: gc/gctests/StringInternSyncWithGC2 fails with Test level exit status: 151
kbarrett
parents: 37272
diff changeset
    38
#define COMMA ,
eb96c446c3a5 8156548: gc/gctests/StringInternSyncWithGC2 fails with Test level exit status: 151
kbarrett
parents: 37272
diff changeset
    39
31340
2f9ff278bb13 8086027: Multiple STATIC_ASSERTs at class scope doesn't work
kbarrett
parents: 29474
diff changeset
    40
// Apply pre-processor token pasting to the expansions of x and y.
2f9ff278bb13 8086027: Multiple STATIC_ASSERTs at class scope doesn't work
kbarrett
parents: 29474
diff changeset
    41
// The token pasting operator (##) prevents its arguments from being
2f9ff278bb13 8086027: Multiple STATIC_ASSERTs at class scope doesn't work
kbarrett
parents: 29474
diff changeset
    42
// expanded.  This macro allows expansion of its arguments before the
2f9ff278bb13 8086027: Multiple STATIC_ASSERTs at class scope doesn't work
kbarrett
parents: 29474
diff changeset
    43
// concatenation is performed.  Note: One auxilliary level ought to be
2f9ff278bb13 8086027: Multiple STATIC_ASSERTs at class scope doesn't work
kbarrett
parents: 29474
diff changeset
    44
// sufficient, but two are used because of bugs in some preprocesors.
2f9ff278bb13 8086027: Multiple STATIC_ASSERTs at class scope doesn't work
kbarrett
parents: 29474
diff changeset
    45
#define PASTE_TOKENS(x, y) PASTE_TOKENS_AUX(x, y)
2f9ff278bb13 8086027: Multiple STATIC_ASSERTs at class scope doesn't work
kbarrett
parents: 29474
diff changeset
    46
#define PASTE_TOKENS_AUX(x, y) PASTE_TOKENS_AUX2(x, y)
2f9ff278bb13 8086027: Multiple STATIC_ASSERTs at class scope doesn't work
kbarrett
parents: 29474
diff changeset
    47
#define PASTE_TOKENS_AUX2(x, y) x ## y
2f9ff278bb13 8086027: Multiple STATIC_ASSERTs at class scope doesn't work
kbarrett
parents: 29474
diff changeset
    48
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    49
// -DINCLUDE_<something>=0 | 1 can be specified on the command line to include
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    50
// or exclude functionality.
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    51
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    52
#ifndef INCLUDE_JVMTI
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    53
#define INCLUDE_JVMTI 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    54
#endif  // INCLUDE_JVMTI
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    55
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    56
#if INCLUDE_JVMTI
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    57
#define JVMTI_ONLY(x) x
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    58
#define NOT_JVMTI(x)
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    59
#define NOT_JVMTI_RETURN
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    60
#define NOT_JVMTI_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    61
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    62
#define JVMTI_ONLY(x)
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    63
#define NOT_JVMTI(x) x
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    64
#define NOT_JVMTI_RETURN { return; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    65
#define NOT_JVMTI_RETURN_(code) { return code; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    66
#endif // INCLUDE_JVMTI
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    67
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    68
#ifndef INCLUDE_VM_STRUCTS
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    69
#define INCLUDE_VM_STRUCTS 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    70
#endif
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    71
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    72
#if INCLUDE_VM_STRUCTS
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    73
#define NOT_VM_STRUCTS_RETURN        /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    74
#define NOT_VM_STRUCTS_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    75
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    76
#define NOT_VM_STRUCTS_RETURN           {}
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    77
#define NOT_VM_STRUCTS_RETURN_(code) { return code; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    78
#endif // INCLUDE_VM_STRUCTS
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    79
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    80
#ifndef INCLUDE_JNI_CHECK
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    81
#define INCLUDE_JNI_CHECK 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    82
#endif
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    83
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    84
#if INCLUDE_JNI_CHECK
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    85
#define NOT_JNI_CHECK_RETURN        /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    86
#define NOT_JNI_CHECK_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    87
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    88
#define NOT_JNI_CHECK_RETURN            {}
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    89
#define NOT_JNI_CHECK_RETURN_(code) { return code; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    90
#endif // INCLUDE_JNI_CHECK
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    91
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    92
#ifndef INCLUDE_SERVICES
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    93
#define INCLUDE_SERVICES 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    94
#endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    96
#if INCLUDE_SERVICES
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    97
#define NOT_SERVICES_RETURN        /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    98
#define NOT_SERVICES_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    99
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   100
#define NOT_SERVICES_RETURN             {}
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   101
#define NOT_SERVICES_RETURN_(code) { return code; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   102
#endif // INCLUDE_SERVICES
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   103
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   104
#ifndef INCLUDE_CDS
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   105
#define INCLUDE_CDS 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   106
#endif
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   107
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   108
#if INCLUDE_CDS
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   109
#define CDS_ONLY(x) x
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   110
#define NOT_CDS(x)
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   111
#define NOT_CDS_RETURN        /* next token must be ; */
49746
b17256b5c047 8201427: Fix Minimal VM builds on Linux x64
stefank
parents: 49714
diff changeset
   112
#define NOT_CDS_RETURN0       /* next token must be ; */
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   113
#define NOT_CDS_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   114
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   115
#define CDS_ONLY(x)
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   116
#define NOT_CDS(x) x
49746
b17256b5c047 8201427: Fix Minimal VM builds on Linux x64
stefank
parents: 49714
diff changeset
   117
#define NOT_CDS_RETURN        {}
b17256b5c047 8201427: Fix Minimal VM builds on Linux x64
stefank
parents: 49714
diff changeset
   118
#define NOT_CDS_RETURN0       { return 0; }
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   119
#define NOT_CDS_RETURN_(code) { return code; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   120
#endif // INCLUDE_CDS
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   121
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   122
#ifndef INCLUDE_MANAGEMENT
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   123
#define INCLUDE_MANAGEMENT 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   124
#endif // INCLUDE_MANAGEMENT
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   126
#if INCLUDE_MANAGEMENT
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   127
#define NOT_MANAGEMENT_RETURN        /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   128
#define NOT_MANAGEMENT_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   129
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   130
#define NOT_MANAGEMENT_RETURN        {}
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   131
#define NOT_MANAGEMENT_RETURN_(code) { return code; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   132
#endif // INCLUDE_MANAGEMENT
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
49982
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   134
#ifndef INCLUDE_CMSGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   135
#define INCLUDE_CMSGC 1
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   136
#endif // INCLUDE_CMSGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   137
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   138
#if INCLUDE_CMSGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   139
#define CMSGC_ONLY(x) x
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   140
#define CMSGC_ONLY_ARG(arg) arg,
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   141
#define NOT_CMSGC(x)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   142
#define NOT_CMSGC_RETURN        /* next token must be ; */
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   143
#define NOT_CMSGC_RETURN_(code) /* next token must be ; */
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   144
#else
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   145
#define CMSGC_ONLY(x)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   146
#define CMSGC_ONLY_ARG(x)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   147
#define NOT_CMSGC(x) x
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   148
#define NOT_CMSGC_RETURN        {}
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   149
#define NOT_CMSGC_RETURN_(code) { return code; }
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   150
#endif // INCLUDE_CMSGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   151
50523
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   152
#ifndef INCLUDE_EPSILONGC
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   153
#define INCLUDE_EPSILONGC 1
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   154
#endif // INCLUDE_EPSILONGC
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   155
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   156
#if INCLUDE_EPSILONGC
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   157
#define EPSILONGC_ONLY(x) x
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   158
#define EPSILONGC_ONLY_ARG(arg) arg,
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   159
#define NOT_EPSILONGC(x)
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   160
#define NOT_EPSILONGC_RETURN        /* next token must be ; */
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   161
#define NOT_EPSILONGC_RETURN_(code) /* next token must be ; */
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   162
#else
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   163
#define EPSILONGC_ONLY(x)
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   164
#define EPSILONGC_ONLY_ARG(arg)
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   165
#define NOT_EPSILONGC(x) x
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   166
#define NOT_EPSILONGC_RETURN        {}
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   167
#define NOT_EPSILONGC_RETURN_(code) { return code; }
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   168
#endif // INCLUDE_EPSILONGC
7b7c75d87f9b 8204180: Implementation: JEP 318: Epsilon, A No-Op Garbage Collector
shade
parents: 50113
diff changeset
   169
49982
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   170
#ifndef INCLUDE_G1GC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   171
#define INCLUDE_G1GC 1
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   172
#endif // INCLUDE_G1GC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   173
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   174
#if INCLUDE_G1GC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   175
#define G1GC_ONLY(x) x
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   176
#define G1GC_ONLY_ARG(arg) arg,
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   177
#define NOT_G1GC(x)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   178
#define NOT_G1GC_RETURN        /* next token must be ; */
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   179
#define NOT_G1GC_RETURN_(code) /* next token must be ; */
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   180
#else
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   181
#define G1GC_ONLY(x)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   182
#define G1GC_ONLY_ARG(arg)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   183
#define NOT_G1GC(x) x
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   184
#define NOT_G1GC_RETURN        {}
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   185
#define NOT_G1GC_RETURN_(code) { return code; }
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   186
#endif // INCLUDE_G1GC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   187
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   188
#ifndef INCLUDE_PARALLELGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   189
#define INCLUDE_PARALLELGC 1
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   190
#endif // INCLUDE_PARALLELGC
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
49982
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   192
#if INCLUDE_PARALLELGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   193
#define PARALLELGC_ONLY(x) x
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   194
#define PARALLELGC_ONLY_ARG(arg) arg,
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   195
#define NOT_PARALLELGC(x)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   196
#define NOT_PARALLELGC_RETURN        /* next token must be ; */
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   197
#define NOT_PARALLELGC_RETURN_(code) /* next token must be ; */
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   198
#else
49982
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   199
#define PARALLELGC_ONLY(x)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   200
#define PARALLELGC_ONLY_ARG(arg)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   201
#define NOT_PARALLELGC(x) x
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   202
#define NOT_PARALLELGC_RETURN        {}
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   203
#define NOT_PARALLELGC_RETURN_(code) { return code; }
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   204
#endif // INCLUDE_PARALLELGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   205
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   206
#ifndef INCLUDE_SERIALGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   207
#define INCLUDE_SERIALGC 1
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   208
#endif // INCLUDE_SERIALGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   209
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   210
#if INCLUDE_SERIALGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   211
#define SERIALGC_ONLY(x) x
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   212
#define SERIALGC_ONLY_ARG(arg) arg,
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   213
#define NOT_SERIALGC(x)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   214
#define NOT_SERIALGC_RETURN        /* next token must be ; */
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   215
#define NOT_SERIALGC_RETURN_(code) /* next token must be ; */
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   216
#else
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   217
#define SERIALGC_ONLY(x)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   218
#define SERIALGC_ONLY_ARG(arg)
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   219
#define NOT_SERIALGC(x) x
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   220
#define NOT_SERIALGC_RETURN        {}
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   221
#define NOT_SERIALGC_RETURN_(code) { return code; }
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   222
#endif // INCLUDE_SERIALGC
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   223
52925
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   224
#ifndef INCLUDE_SHENANDOAHGC
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   225
#define INCLUDE_SHENANDOAHGC 1
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   226
#endif // INCLUDE_SHENANDOAHGC
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   227
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   228
#if INCLUDE_SHENANDOAHGC
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   229
#define SHENANDOAHGC_ONLY(x) x
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   230
#define SHENANDOAHGC_ONLY_ARG(arg) arg,
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   231
#define NOT_SHENANDOAHGC(x)
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   232
#define NOT_SHENANDOAHGC_RETURN        /* next token must be ; */
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   233
#define NOT_SHENANDOAHGC_RETURN_(code) /* next token must be ; */
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   234
#else
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   235
#define SHENANDOAHGC_ONLY(x)
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   236
#define SHENANDOAHGC_ONLY_ARG(arg)
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   237
#define NOT_SHENANDOAHGC(x) x
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   238
#define NOT_SHENANDOAHGC_RETURN        {}
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   239
#define NOT_SHENANDOAHGC_RETURN_(code) { return code; }
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   240
#endif // INCLUDE_SHENANDOAHGC
9c18c9d839d3 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
rkennke
parents: 52351
diff changeset
   241
50525
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   242
#ifndef INCLUDE_ZGC
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   243
#define INCLUDE_ZGC 1
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   244
#endif // INCLUDE_ZGC
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   245
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   246
#if INCLUDE_ZGC
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   247
#define ZGC_ONLY(x) x
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   248
#define ZGC_ONLY_ARG(arg) arg,
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   249
#define NOT_ZGC(x)
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   250
#define NOT_ZGC_RETURN        /* next token must be ; */
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   251
#define NOT_ZGC_RETURN_(code) /* next token must be ; */
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   252
#else
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   253
#define ZGC_ONLY(x)
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   254
#define ZGC_ONLY_ARG(arg)
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   255
#define NOT_ZGC(x) x
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   256
#define NOT_ZGC_RETURN        {}
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   257
#define NOT_ZGC_RETURN_(code) { return code; }
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   258
#endif // INCLUDE_ZGC
767cdb97f103 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
pliden
parents: 50523
diff changeset
   259
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   260
#ifndef INCLUDE_NMT
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   261
#define INCLUDE_NMT 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   262
#endif // INCLUDE_NMT
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   263
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   264
#if INCLUDE_NMT
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   265
#define NOT_NMT_RETURN        /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   266
#define NOT_NMT_RETURN_(code) /* next token must be ; */
50021
b8308d6356e7 8202684: Minimal VM build is broken after JDK-8199067, JDK-8202638
shade
parents: 49982
diff changeset
   267
#define NMT_ONLY(x) x
b8308d6356e7 8202684: Minimal VM build is broken after JDK-8199067, JDK-8202638
shade
parents: 49982
diff changeset
   268
#define NOT_NMT(x)
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   269
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   270
#define NOT_NMT_RETURN        {}
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   271
#define NOT_NMT_RETURN_(code) { return code; }
50021
b8308d6356e7 8202684: Minimal VM build is broken after JDK-8199067, JDK-8202638
shade
parents: 49982
diff changeset
   272
#define NMT_ONLY(x)
b8308d6356e7 8202684: Minimal VM build is broken after JDK-8199067, JDK-8202638
shade
parents: 49982
diff changeset
   273
#define NOT_NMT(x) x
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   274
#endif // INCLUDE_NMT
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50021
diff changeset
   276
#ifndef INCLUDE_JFR
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50021
diff changeset
   277
#define INCLUDE_JFR 1
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50021
diff changeset
   278
#endif
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50021
diff changeset
   279
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50021
diff changeset
   280
#if INCLUDE_JFR
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50021
diff changeset
   281
#define JFR_ONLY(code) code
54573
b73893f7fee3 8222379: JFR TestClassLoadEvent.java failed due to EXCEPTION_ACCESS_VIOLATION
coleenp
parents: 53244
diff changeset
   282
#define NOT_JFR_RETURN_(code) /* next token must be ; */
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50021
diff changeset
   283
#else
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50021
diff changeset
   284
#define JFR_ONLY(code)
54573
b73893f7fee3 8222379: JFR TestClassLoadEvent.java failed due to EXCEPTION_ACCESS_VIOLATION
coleenp
parents: 53244
diff changeset
   285
#define NOT_JFR_RETURN_(code) { return code; }
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 50021
diff changeset
   286
#endif
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 15482
diff changeset
   287
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   288
#ifndef INCLUDE_JVMCI
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   289
#define INCLUDE_JVMCI 1
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   290
#endif
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   291
49972
37b2446d7f86 8202552: [AOT][JVMCI] Incorrect usage of INCLUDE_JVMCI and INCLUDE_AOT
kvn
parents: 49906
diff changeset
   292
#ifndef INCLUDE_AOT
37b2446d7f86 8202552: [AOT][JVMCI] Incorrect usage of INCLUDE_JVMCI and INCLUDE_AOT
kvn
parents: 49906
diff changeset
   293
#define INCLUDE_AOT 1
37b2446d7f86 8202552: [AOT][JVMCI] Incorrect usage of INCLUDE_JVMCI and INCLUDE_AOT
kvn
parents: 49906
diff changeset
   294
#endif
37b2446d7f86 8202552: [AOT][JVMCI] Incorrect usage of INCLUDE_JVMCI and INCLUDE_AOT
kvn
parents: 49906
diff changeset
   295
37b2446d7f86 8202552: [AOT][JVMCI] Incorrect usage of INCLUDE_JVMCI and INCLUDE_AOT
kvn
parents: 49906
diff changeset
   296
#if INCLUDE_AOT && !INCLUDE_JVMCI
37b2446d7f86 8202552: [AOT][JVMCI] Incorrect usage of INCLUDE_JVMCI and INCLUDE_AOT
kvn
parents: 49906
diff changeset
   297
#  error "Must have JVMCI for AOT"
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   298
#endif
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   299
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   300
#if INCLUDE_JVMCI
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   301
#define JVMCI_ONLY(code) code
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   302
#define NOT_JVMCI(code)
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   303
#define NOT_JVMCI_RETURN /* next token must be ; */
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   304
#else
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   305
#define JVMCI_ONLY(code)
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   306
#define NOT_JVMCI(code) code
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   307
#define NOT_JVMCI_RETURN {}
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   308
#endif // INCLUDE_JVMCI
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   309
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   310
#if INCLUDE_AOT
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   311
#define AOT_ONLY(code) code
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   312
#define NOT_AOT(code)
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   313
#define NOT_AOT_RETURN /* next token must be ; */
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   314
#else
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   315
#define AOT_ONLY(code)
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   316
#define NOT_AOT(code) code
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   317
#define NOT_AOT_RETURN {}
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   318
#endif // INCLUDE_AOT
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 42062
diff changeset
   319
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
// COMPILER1 variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
   321
#ifdef COMPILER1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
#ifdef COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
  #define TIERED
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
#define COMPILER1_PRESENT(code) code
49906
4bb58f644e4e 8201543: Modularize C1 GC barriers
eosterlund
parents: 49746
diff changeset
   326
#define NOT_COMPILER1(code)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
#else // COMPILER1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
#define COMPILER1_PRESENT(code)
49906
4bb58f644e4e 8201543: Modularize C1 GC barriers
eosterlund
parents: 49746
diff changeset
   329
#define NOT_COMPILER1(code) code
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
#endif // COMPILER1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   331
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
// COMPILER2 variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
#ifdef COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   334
#define COMPILER2_PRESENT(code) code
1606
dcf9714addbe 6684579: SoftReference processing can be made more efficient
ysr
parents: 1217
diff changeset
   335
#define NOT_COMPILER2(code)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
#else // COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   337
#define COMPILER2_PRESENT(code)
1606
dcf9714addbe 6684579: SoftReference processing can be made more efficient
ysr
parents: 1217
diff changeset
   338
#define NOT_COMPILER2(code) code
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
#endif // COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
37272
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   341
// COMPILER2 or JVMCI
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   342
#if defined(COMPILER2) || INCLUDE_JVMCI
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   343
#define COMPILER2_OR_JVMCI 1
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   344
#define COMPILER2_OR_JVMCI_PRESENT(code) code
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   345
#define NOT_COMPILER2_OR_JVMCI(code)
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   346
#else
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   347
#define COMPILER2_OR_JVMCI 0
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   348
#define COMPILER2_OR_JVMCI_PRESENT(code)
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   349
#define NOT_COMPILER2_OR_JVMCI(code) code
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   350
#endif
c427db4ea8c4 8148639: Some MethodCounter fields can be excluded when not including C2
cjplummer
parents: 36350
diff changeset
   351
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   352
#ifdef TIERED
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   353
#define TIERED_ONLY(code) code
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   354
#define NOT_TIERED(code)
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31340
diff changeset
   355
#else // TIERED
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   356
#define TIERED_ONLY(code)
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   357
#define NOT_TIERED(code) code
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   358
#endif // TIERED
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   359
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   360
489c9b5090e2 Initial load
duke
parents:
diff changeset
   361
// PRODUCT variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
   362
#ifdef PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   363
#define PRODUCT_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   364
#define NOT_PRODUCT(code)
6438
ace4f8100e90 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 6187
diff changeset
   365
#define NOT_PRODUCT_ARG(arg)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   366
#define PRODUCT_RETURN  {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   367
#define PRODUCT_RETURN0 { return 0; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   368
#define PRODUCT_RETURN_(code) { code }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   369
#else // PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   370
#define PRODUCT_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   371
#define NOT_PRODUCT(code) code
6438
ace4f8100e90 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 6187
diff changeset
   372
#define NOT_PRODUCT_ARG(arg) arg,
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   373
#define PRODUCT_RETURN  /*next token must be ;*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
   374
#define PRODUCT_RETURN0 /*next token must be ;*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
   375
#define PRODUCT_RETURN_(code)  /*next token must be ;*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
   376
#endif // PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   377
489c9b5090e2 Initial load
duke
parents:
diff changeset
   378
#ifdef CHECK_UNHANDLED_OOPS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   379
#define CHECK_UNHANDLED_OOPS_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   380
#define NOT_CHECK_UNHANDLED_OOPS(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   381
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   382
#define CHECK_UNHANDLED_OOPS_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   383
#define NOT_CHECK_UNHANDLED_OOPS(code)  code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   384
#endif // CHECK_UNHANDLED_OOPS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   385
489c9b5090e2 Initial load
duke
parents:
diff changeset
   386
#ifdef CC_INTERP
489c9b5090e2 Initial load
duke
parents:
diff changeset
   387
#define CC_INTERP_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   388
#define NOT_CC_INTERP(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   389
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   390
#define CC_INTERP_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   391
#define NOT_CC_INTERP(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   392
#endif // CC_INTERP
489c9b5090e2 Initial load
duke
parents:
diff changeset
   393
489c9b5090e2 Initial load
duke
parents:
diff changeset
   394
#ifdef ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   395
#define DEBUG_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   396
#define NOT_DEBUG(code)
2998
b501bd305780 6849716: BitMap - performance regression introduced with G1
jcoomes
parents: 1606
diff changeset
   397
#define NOT_DEBUG_RETURN  /*next token must be ;*/
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   398
// Historical.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   399
#define debug_only(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   400
#else // ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   401
#define DEBUG_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   402
#define NOT_DEBUG(code) code
2998
b501bd305780 6849716: BitMap - performance regression introduced with G1
jcoomes
parents: 1606
diff changeset
   403
#define NOT_DEBUG_RETURN {}
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   404
#define debug_only(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   405
#endif // ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   406
489c9b5090e2 Initial load
duke
parents:
diff changeset
   407
#ifdef  _LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   408
#define LP64_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   409
#define NOT_LP64(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   410
#else  // !_LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   411
#define LP64_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   412
#define NOT_LP64(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   413
#endif // _LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   414
489c9b5090e2 Initial load
duke
parents:
diff changeset
   415
#ifdef LINUX
489c9b5090e2 Initial load
duke
parents:
diff changeset
   416
#define LINUX_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   417
#define NOT_LINUX(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   418
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   419
#define LINUX_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   420
#define NOT_LINUX(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   421
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   422
22827
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   423
#ifdef AIX
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   424
#define AIX_ONLY(code) code
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   425
#define NOT_AIX(code)
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   426
#else
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   427
#define AIX_ONLY(code)
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   428
#define NOT_AIX(code) code
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   429
#endif
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   430
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   431
#ifdef SOLARIS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   432
#define SOLARIS_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   433
#define NOT_SOLARIS(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   434
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   435
#define SOLARIS_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   436
#define NOT_SOLARIS(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   437
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   438
489c9b5090e2 Initial load
duke
parents:
diff changeset
   439
#ifdef _WINDOWS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   440
#define WINDOWS_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   441
#define NOT_WINDOWS(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   442
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   443
#define WINDOWS_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   444
#define NOT_WINDOWS(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   445
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   446
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   447
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
47765
b7c7428eaab9 8189610: Reconcile jvm.h and all jvm_md.h between java.base and hotspot
coleenp
parents: 47687
diff changeset
   448
#ifndef BSD
40010
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   449
#define BSD
47765
b7c7428eaab9 8189610: Reconcile jvm.h and all jvm_md.h between java.base and hotspot
coleenp
parents: 47687
diff changeset
   450
#endif // BSD defined in <sys/param.h>
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   451
#define BSD_ONLY(code) code
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   452
#define NOT_BSD(code)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   453
#else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   454
#define BSD_ONLY(code)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   455
#define NOT_BSD(code) code
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   456
#endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   457
8495
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   458
#ifdef _WIN64
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   459
#define WIN64_ONLY(code) code
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   460
#define NOT_WIN64(code)
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   461
#else
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   462
#define WIN64_ONLY(code)
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   463
#define NOT_WIN64(code) code
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   464
#endif
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   465
14294
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   466
#if defined(ZERO)
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   467
#define ZERO_ONLY(code) code
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   468
#define NOT_ZERO(code)
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   469
#else
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   470
#define ZERO_ONLY(code)
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   471
#define NOT_ZERO(code) code
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   472
#endif
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   473
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   474
#if defined(IA32) || defined(AMD64)
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   475
#define X86
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   476
#define X86_ONLY(code) code
6187
4fa7845f7c14 6976186: integrate Shark HotSpot changes
twisti
parents: 6176
diff changeset
   477
#define NOT_X86(code)
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   478
#else
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   479
#undef X86
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   480
#define X86_ONLY(code)
6187
4fa7845f7c14 6976186: integrate Shark HotSpot changes
twisti
parents: 6176
diff changeset
   481
#define NOT_X86(code) code
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   482
#endif
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   483
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   484
#ifdef IA32
489c9b5090e2 Initial load
duke
parents:
diff changeset
   485
#define IA32_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   486
#define NOT_IA32(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   487
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   488
#define IA32_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   489
#define NOT_IA32(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   490
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   491
22819
f88b9c394e42 8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents: 22808
diff changeset
   492
// This is a REALLY BIG HACK, but on AIX <sys/systemcfg.h> unconditionally defines IA64.
f88b9c394e42 8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents: 22808
diff changeset
   493
// At least on AIX 7.1 this is a real problem because 'systemcfg.h' is indirectly included
f88b9c394e42 8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents: 22808
diff changeset
   494
// by 'pthread.h' and other common system headers.
f88b9c394e42 8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents: 22808
diff changeset
   495
f88b9c394e42 8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents: 22808
diff changeset
   496
#if defined(IA64) && !defined(AIX)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   497
#define IA64_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   498
#define NOT_IA64(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   499
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   500
#define IA64_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   501
#define NOT_IA64(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   502
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   503
489c9b5090e2 Initial load
duke
parents:
diff changeset
   504
#ifdef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   505
#define AMD64_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   506
#define NOT_AMD64(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   507
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   508
#define AMD64_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   509
#define NOT_AMD64(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   510
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   511
42062
473286891dd8 8166560: [s390] Basic enablement of s390 port.
goetz
parents: 40655
diff changeset
   512
#ifdef S390
473286891dd8 8166560: [s390] Basic enablement of s390 port.
goetz
parents: 40655
diff changeset
   513
#define S390_ONLY(code) code
473286891dd8 8166560: [s390] Basic enablement of s390 port.
goetz
parents: 40655
diff changeset
   514
#define NOT_S390(code)
473286891dd8 8166560: [s390] Basic enablement of s390 port.
goetz
parents: 40655
diff changeset
   515
#else
473286891dd8 8166560: [s390] Basic enablement of s390 port.
goetz
parents: 40655
diff changeset
   516
#define S390_ONLY(code)
473286891dd8 8166560: [s390] Basic enablement of s390 port.
goetz
parents: 40655
diff changeset
   517
#define NOT_S390(code) code
473286891dd8 8166560: [s390] Basic enablement of s390 port.
goetz
parents: 40655
diff changeset
   518
#endif
473286891dd8 8166560: [s390] Basic enablement of s390 port.
goetz
parents: 40655
diff changeset
   519
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   520
#ifdef SPARC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   521
#define SPARC_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   522
#define NOT_SPARC(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   523
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   524
#define SPARC_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   525
#define NOT_SPARC(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   526
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   527
22806
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   528
#if defined(PPC32) || defined(PPC64)
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   529
#ifndef PPC
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   530
#define PPC
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   531
#endif
6176
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   532
#define PPC_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   533
#define NOT_PPC(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   534
#else
22806
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   535
#undef PPC
6176
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   536
#define PPC_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   537
#define NOT_PPC(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   538
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   539
22806
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   540
#ifdef PPC32
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   541
#define PPC32_ONLY(code) code
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   542
#define NOT_PPC32(code)
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   543
#else
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   544
#define PPC32_ONLY(code)
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   545
#define NOT_PPC32(code) code
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   546
#endif
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   547
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   548
#ifdef PPC64
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   549
#define PPC64_ONLY(code) code
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   550
#define NOT_PPC64(code)
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   551
#else
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   552
#define PPC64_ONLY(code)
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   553
#define NOT_PPC64(code) code
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   554
#endif
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   555
6176
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   556
#ifdef E500V2
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   557
#define E500V2_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   558
#define NOT_E500V2(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   559
#else
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   560
#define E500V2_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   561
#define NOT_E500V2(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   562
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   563
52351
0ecb4e520110 8209093: JEP 340: One AArch64 Port, Not Two
bobv
parents: 51330
diff changeset
   564
// Note: There are two ARM ports. They set the following in the makefiles:
0ecb4e520110 8209093: JEP 340: One AArch64 Port, Not Two
bobv
parents: 51330
diff changeset
   565
// 1. 32-bit port:   -DARM -DARM32 -DTARGET_ARCH_arm
0ecb4e520110 8209093: JEP 340: One AArch64 Port, Not Two
bobv
parents: 51330
diff changeset
   566
// 2. 64-bit port:   -DAARCH64 -D_LP64 -DTARGET_ARCH_aaarch64
6176
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   567
#ifdef ARM
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   568
#define ARM_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   569
#define NOT_ARM(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   570
#else
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   571
#define ARM_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   572
#define NOT_ARM(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   573
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   574
29474
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   575
#ifdef ARM32
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   576
#define ARM32_ONLY(code) code
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   577
#define NOT_ARM32(code)
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   578
#else
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   579
#define ARM32_ONLY(code)
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   580
#define NOT_ARM32(code) code
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   581
#endif
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   582
29180
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   583
#ifdef AARCH64
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   584
#define AARCH64_ONLY(code) code
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   585
#define NOT_AARCH64(code)
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   586
#else
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   587
#define AARCH64_ONLY(code)
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   588
#define NOT_AARCH64(code) code
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   589
#endif
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   590
50976
59ee619866c3 8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
simonis
parents: 50752
diff changeset
   591
#ifdef VM_LITTLE_ENDIAN
59ee619866c3 8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
simonis
parents: 50752
diff changeset
   592
#define LITTLE_ENDIAN_ONLY(code) code
59ee619866c3 8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
simonis
parents: 50752
diff changeset
   593
#define BIG_ENDIAN_ONLY(code)
59ee619866c3 8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
simonis
parents: 50752
diff changeset
   594
#else
59ee619866c3 8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
simonis
parents: 50752
diff changeset
   595
#define LITTLE_ENDIAN_ONLY(code)
59ee619866c3 8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
simonis
parents: 50752
diff changeset
   596
#define BIG_ENDIAN_ONLY(code) code
59ee619866c3 8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
simonis
parents: 50752
diff changeset
   597
#endif
59ee619866c3 8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
simonis
parents: 50752
diff changeset
   598
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   599
#define define_pd_global(type, name, value) const type pd_##name = value;
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6466
diff changeset
   600
40010
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   601
// Helper macros for constructing file names for includes.
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   602
#define CPU_HEADER_STEM(basename) PASTE_TOKENS(basename, INCLUDE_SUFFIX_CPU)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   603
#define OS_HEADER_STEM(basename) PASTE_TOKENS(basename, INCLUDE_SUFFIX_OS)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   604
#define OS_CPU_HEADER_STEM(basename) PASTE_TOKENS(basename, PASTE_TOKENS(INCLUDE_SUFFIX_OS, INCLUDE_SUFFIX_CPU))
46560
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents: 42650
diff changeset
   605
#define COMPILER_HEADER_STEM(basename) PASTE_TOKENS(basename, INCLUDE_SUFFIX_COMPILER)
40010
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   606
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   607
// Include platform dependent files.
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   608
//
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   609
// This macro constructs from basename and INCLUDE_SUFFIX_OS /
46560
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents: 42650
diff changeset
   610
// INCLUDE_SUFFIX_CPU / INCLUDE_SUFFIX_COMPILER, which are set on
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents: 42650
diff changeset
   611
// the command line, the name of platform dependent files to be included.
40010
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   612
// Example: INCLUDE_SUFFIX_OS=_linux / INCLUDE_SUFFIX_CPU=_sparc
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   613
//   CPU_HEADER_INLINE(macroAssembler) --> macroAssembler_sparc.inline.hpp
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   614
//   OS_CPU_HEADER(vmStructs)          --> vmStructs_linux_sparc.hpp
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   615
//
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   616
// basename<cpu>.hpp / basename<cpu>.inline.hpp
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   617
#define CPU_HEADER_H(basename)         XSTR(CPU_HEADER_STEM(basename).h)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   618
#define CPU_HEADER(basename)           XSTR(CPU_HEADER_STEM(basename).hpp)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   619
#define CPU_HEADER_INLINE(basename)    XSTR(CPU_HEADER_STEM(basename).inline.hpp)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   620
// basename<os>.hpp / basename<os>.inline.hpp
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   621
#define OS_HEADER_H(basename)          XSTR(OS_HEADER_STEM(basename).h)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   622
#define OS_HEADER(basename)            XSTR(OS_HEADER_STEM(basename).hpp)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   623
#define OS_HEADER_INLINE(basename)     XSTR(OS_HEADER_STEM(basename).inline.hpp)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   624
// basename<os><cpu>.hpp / basename<os><cpu>.inline.hpp
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   625
#define OS_CPU_HEADER(basename)        XSTR(OS_CPU_HEADER_STEM(basename).hpp)
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   626
#define OS_CPU_HEADER_INLINE(basename) XSTR(OS_CPU_HEADER_STEM(basename).inline.hpp)
46560
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents: 42650
diff changeset
   627
// basename<compiler>.hpp / basename<compiler>.inline.hpp
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents: 42650
diff changeset
   628
#define COMPILER_HEADER(basename)        XSTR(COMPILER_HEADER_STEM(basename).hpp)
388aa8d67c80 8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents: 42650
diff changeset
   629
#define COMPILER_HEADER_INLINE(basename) XSTR(COMPILER_HEADER_STEM(basename).inline.hpp)
40010
e32d5e545789 8161258: Simplify including platform files.
goetz
parents: 38704
diff changeset
   630
49982
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 49972
diff changeset
   631
#if INCLUDE_CDS && INCLUDE_G1GC && defined(_LP64) && !defined(_WINDOWS)
46810
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   632
#define INCLUDE_CDS_JAVA_HEAP 1
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   633
#define CDS_JAVA_HEAP_ONLY(x) x
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   634
#define NOT_CDS_JAVA_HEAP(x)
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   635
#define NOT_CDS_JAVA_HEAP_RETURN
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   636
#define NOT_CDS_JAVA_HEAP_RETURN_(code)
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   637
#else
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   638
#define INCLUDE_CDS_JAVA_HEAP 0
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   639
#define CDS_JAVA_HEAP_ONLY(x)
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   640
#define NOT_CDS_JAVA_HEAP(x) x
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   641
#define NOT_CDS_JAVA_HEAP_RETURN        {}
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   642
#define NOT_CDS_JAVA_HEAP_RETURN_(code) { return code; }
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   643
#endif
7dad333205cd 8179302: Pre-resolve constant pool string entries and cache resolved_reference arrays in CDS archive.
jiangli
parents: 46560
diff changeset
   644
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52925
diff changeset
   645
#endif // SHARE_UTILITIES_MACROS_HPP