hotspot/src/share/vm/utilities/macros.hpp
author dlong
Tue, 24 Feb 2015 17:23:53 -0500
changeset 29474 81a5c5330d08
parent 29180 50369728b00e
child 31340 2f9ff278bb13
permissions -rw-r--r--
8072383: resolve conflicts between open and closed ports Summary: refactor close to remove references to closed ports Reviewed-by: kvn, simonis, dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
29474
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
     2
 * Copyright (c) 1997, 2015, 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
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6466
diff changeset
    25
#ifndef SHARE_VM_UTILITIES_MACROS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6466
diff changeset
    26
#define SHARE_VM_UTILITIES_MACROS_HPP
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
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    37
// -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
    38
// or exclude functionality.
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    39
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    40
#ifndef INCLUDE_JVMTI
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    41
#define INCLUDE_JVMTI 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    42
#endif  // INCLUDE_JVMTI
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    43
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    44
#if INCLUDE_JVMTI
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    45
#define JVMTI_ONLY(x) x
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    46
#define NOT_JVMTI(x)
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    47
#define NOT_JVMTI_RETURN
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    48
#define NOT_JVMTI_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    49
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    50
#define JVMTI_ONLY(x)
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    51
#define NOT_JVMTI(x) x
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    52
#define NOT_JVMTI_RETURN { return; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    53
#define NOT_JVMTI_RETURN_(code) { return code; }
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
#ifndef INCLUDE_FPROF
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    57
#define INCLUDE_FPROF 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    58
#endif
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    59
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    60
#if INCLUDE_FPROF
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    61
#define NOT_FPROF_RETURN        /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    62
#define NOT_FPROF_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    63
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    64
#define NOT_FPROF_RETURN                {}
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    65
#define NOT_FPROF_RETURN_(code) { return code; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
    66
#endif // INCLUDE_FPROF
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 ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   112
#define NOT_CDS_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   113
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   114
#define CDS_ONLY(x)
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   115
#define NOT_CDS(x) x
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   116
#define NOT_CDS_RETURN          {}
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   117
#define NOT_CDS_RETURN_(code) { return code; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   118
#endif // INCLUDE_CDS
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   119
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   120
#ifndef INCLUDE_MANAGEMENT
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   121
#define INCLUDE_MANAGEMENT 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   122
#endif // INCLUDE_MANAGEMENT
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   124
#if INCLUDE_MANAGEMENT
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   125
#define NOT_MANAGEMENT_RETURN        /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   126
#define NOT_MANAGEMENT_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   127
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   128
#define NOT_MANAGEMENT_RETURN        {}
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   129
#define NOT_MANAGEMENT_RETURN_(code) { return code; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   130
#endif // INCLUDE_MANAGEMENT
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   132
/*
15482
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   133
 * When INCLUDE_ALL_GCS is false the only garbage collectors
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   134
 * included in the JVM are defaultNewGeneration and markCompact.
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   135
 *
15482
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   136
 * When INCLUDE_ALL_GCS is true all garbage collectors are
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   137
 * included in the JVM.
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   138
 */
15482
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   139
#ifndef INCLUDE_ALL_GCS
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   140
#define INCLUDE_ALL_GCS 1
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   141
#endif // INCLUDE_ALL_GCS
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
15482
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   143
#if INCLUDE_ALL_GCS
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   144
#define NOT_ALL_GCS_RETURN        /* next token must be ; */
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   145
#define NOT_ALL_GCS_RETURN_(code) /* next token must be ; */
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   146
#else
15482
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   147
#define NOT_ALL_GCS_RETURN        {}
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   148
#define NOT_ALL_GCS_RETURN_(code) { return code; }
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 14294
diff changeset
   149
#endif // INCLUDE_ALL_GCS
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   151
#ifndef INCLUDE_NMT
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   152
#define INCLUDE_NMT 1
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   153
#endif // INCLUDE_NMT
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   154
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   155
#if INCLUDE_NMT
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   156
#define NOT_NMT_RETURN        /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   157
#define NOT_NMT_RETURN_(code) /* next token must be ; */
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   158
#else
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   159
#define NOT_NMT_RETURN        {}
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   160
#define NOT_NMT_RETURN_(code) { return code; }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 10565
diff changeset
   161
#endif // INCLUDE_NMT
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
18025
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 15482
diff changeset
   163
#ifndef INCLUDE_TRACE
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 15482
diff changeset
   164
#define INCLUDE_TRACE 1
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 15482
diff changeset
   165
#endif // INCLUDE_TRACE
b7bcf7497f93 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 15482
diff changeset
   166
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
// COMPILER1 variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
#ifdef COMPILER1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
#ifdef COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
  #define TIERED
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
#define COMPILER1_PRESENT(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
#else // COMPILER1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
#define COMPILER1_PRESENT(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
#endif // COMPILER1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
// COMPILER2 variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
#ifdef COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
#define COMPILER2_PRESENT(code) code
1606
dcf9714addbe 6684579: SoftReference processing can be made more efficient
ysr
parents: 1217
diff changeset
   180
#define NOT_COMPILER2(code)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
#else // COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
#define COMPILER2_PRESENT(code)
1606
dcf9714addbe 6684579: SoftReference processing can be made more efficient
ysr
parents: 1217
diff changeset
   183
#define NOT_COMPILER2(code) code
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
#endif // COMPILER2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   186
#ifdef TIERED
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   187
#define TIERED_ONLY(code) code
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   188
#define NOT_TIERED(code)
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   189
#else
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   190
#define TIERED_ONLY(code)
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   191
#define NOT_TIERED(code) code
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   192
#endif // TIERED
970dc585ab63 6953144: Tiered compilation
iveresov
parents: 6187
diff changeset
   193
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
// PRODUCT variant
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
#ifdef PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
#define PRODUCT_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
#define NOT_PRODUCT(code)
6438
ace4f8100e90 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 6187
diff changeset
   199
#define NOT_PRODUCT_ARG(arg)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
#define PRODUCT_RETURN  {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
#define PRODUCT_RETURN0 { return 0; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
#define PRODUCT_RETURN_(code) { code }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
#else // PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
#define PRODUCT_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
#define NOT_PRODUCT(code) code
6438
ace4f8100e90 6979444: add command line option to print command line flags descriptions
ikrylov
parents: 6187
diff changeset
   206
#define NOT_PRODUCT_ARG(arg) arg,
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
#define PRODUCT_RETURN  /*next token must be ;*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
#define PRODUCT_RETURN0 /*next token must be ;*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
#define PRODUCT_RETURN_(code)  /*next token must be ;*/
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
#endif // PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
#ifdef CHECK_UNHANDLED_OOPS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
#define CHECK_UNHANDLED_OOPS_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
#define NOT_CHECK_UNHANDLED_OOPS(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
#define CHECK_UNHANDLED_OOPS_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
#define NOT_CHECK_UNHANDLED_OOPS(code)  code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
#endif // CHECK_UNHANDLED_OOPS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
#ifdef CC_INTERP
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
#define CC_INTERP_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
#define NOT_CC_INTERP(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
#define CC_INTERP_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
#define NOT_CC_INTERP(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
#endif // CC_INTERP
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
#ifdef ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
#define DEBUG_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
#define NOT_DEBUG(code)
2998
b501bd305780 6849716: BitMap - performance regression introduced with G1
jcoomes
parents: 1606
diff changeset
   231
#define NOT_DEBUG_RETURN  /*next token must be ;*/
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
// Historical.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
#define debug_only(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
#else // ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
#define DEBUG_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
#define NOT_DEBUG(code) code
2998
b501bd305780 6849716: BitMap - performance regression introduced with G1
jcoomes
parents: 1606
diff changeset
   237
#define NOT_DEBUG_RETURN {}
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
#define debug_only(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
#endif // ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
#ifdef  _LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
#define LP64_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
#define NOT_LP64(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
#else  // !_LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   245
#define LP64_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   246
#define NOT_LP64(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
#endif // _LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
#ifdef LINUX
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
#define LINUX_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
#define NOT_LINUX(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
#define LINUX_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
#define NOT_LINUX(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
22827
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   257
#ifdef AIX
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   258
#define AIX_ONLY(code) code
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   259
#define NOT_AIX(code)
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   260
#else
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   261
#define AIX_ONLY(code)
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   262
#define NOT_AIX(code) code
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   263
#endif
07d991d45a51 8023033: PPC64 (part 13): basic changes for AIX
goetz
parents: 22819
diff changeset
   264
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
#ifdef SOLARIS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
#define SOLARIS_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   267
#define NOT_SOLARIS(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   268
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
#define SOLARIS_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
#define NOT_SOLARIS(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
#ifdef _WINDOWS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
#define WINDOWS_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
#define NOT_WINDOWS(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   277
#define WINDOWS_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   278
#define NOT_WINDOWS(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   279
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   280
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   281
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   282
#define BSD_ONLY(code) code
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   283
#define NOT_BSD(code)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   284
#else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   285
#define BSD_ONLY(code)
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   286
#define NOT_BSD(code) code
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   287
#endif
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 8495
diff changeset
   288
8495
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   289
#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
   290
#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
   291
#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
   292
#else
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   293
#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
   294
#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
   295
#endif
a4959965eaa3 7012914: JSR 292 MethodHandlesTest C1: frame::verify_return_pc(return_address) failed: must be a return pc
twisti
parents: 8110
diff changeset
   296
14294
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   297
#if defined(ZERO)
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   298
#define ZERO_ONLY(code) code
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   299
#define NOT_ZERO(code)
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   300
#else
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   301
#define ZERO_ONLY(code)
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   302
#define NOT_ZERO(code) code
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   303
#endif
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   304
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   305
#if defined(SHARK)
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   306
#define SHARK_ONLY(code) code
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   307
#define NOT_SHARK(code)
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   308
#else
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   309
#define SHARK_ONLY(code)
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   310
#define NOT_SHARK(code) code
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   311
#endif
130e947dfbe6 8000780: make Zero build and run with JDK8
twisti
parents: 13975
diff changeset
   312
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   313
#if defined(IA32) || defined(AMD64)
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   314
#define X86
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   315
#define X86_ONLY(code) code
6187
4fa7845f7c14 6976186: integrate Shark HotSpot changes
twisti
parents: 6176
diff changeset
   316
#define NOT_X86(code)
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   317
#else
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   318
#undef X86
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   319
#define X86_ONLY(code)
6187
4fa7845f7c14 6976186: integrate Shark HotSpot changes
twisti
parents: 6176
diff changeset
   320
#define NOT_X86(code) code
1066
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   321
#endif
717c3345024f 5108146: Merge i486 and amd64 cpu directories
never
parents: 1
diff changeset
   322
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
#ifdef IA32
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
#define IA32_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
#define NOT_IA32(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
#define IA32_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
#define NOT_IA32(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
22819
f88b9c394e42 8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents: 22808
diff changeset
   331
// 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
   332
// 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
   333
// by 'pthread.h' and other common system headers.
f88b9c394e42 8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents: 22808
diff changeset
   334
f88b9c394e42 8019973: PPC64 (part 11): Fix IA64 preprocessor conditionals on AIX.
goetz
parents: 22808
diff changeset
   335
#if defined(IA64) && !defined(AIX)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
#define IA64_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   337
#define NOT_IA64(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   338
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
#define IA64_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
#define NOT_IA64(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   341
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   342
489c9b5090e2 Initial load
duke
parents:
diff changeset
   343
#ifdef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   344
#define AMD64_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   345
#define NOT_AMD64(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   346
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   347
#define AMD64_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   348
#define NOT_AMD64(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   350
489c9b5090e2 Initial load
duke
parents:
diff changeset
   351
#ifdef SPARC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   352
#define SPARC_ONLY(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   353
#define NOT_SPARC(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   354
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   355
#define SPARC_ONLY(code)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   356
#define NOT_SPARC(code) code
489c9b5090e2 Initial load
duke
parents:
diff changeset
   357
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   358
22806
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   359
#if defined(PPC32) || defined(PPC64)
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   360
#ifndef PPC
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   361
#define PPC
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   362
#endif
6176
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   363
#define PPC_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   364
#define NOT_PPC(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   365
#else
22806
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   366
#undef PPC
6176
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   367
#define PPC_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   368
#define NOT_PPC(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   369
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   370
22806
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   371
#ifdef PPC32
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   372
#define PPC32_ONLY(code) code
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   373
#define NOT_PPC32(code)
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   374
#else
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   375
#define PPC32_ONLY(code)
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   376
#define NOT_PPC32(code) code
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   377
#endif
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   378
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   379
#ifdef PPC64
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   380
#define PPC64_ONLY(code) code
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   381
#define NOT_PPC64(code)
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   382
#else
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   383
#define PPC64_ONLY(code)
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   384
#define NOT_PPC64(code) code
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   385
#endif
7d1955769e90 8016491: PPC64 (part 2): Clean up PPC defines.
goetz
parents: 15482
diff changeset
   386
6176
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   387
#ifdef E500V2
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   388
#define E500V2_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   389
#define NOT_E500V2(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   390
#else
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   391
#define E500V2_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   392
#define NOT_E500V2(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   393
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   394
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   395
#ifdef ARM
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   396
#define ARM_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   397
#define NOT_ARM(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   398
#else
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   399
#define ARM_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   400
#define NOT_ARM(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   401
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   402
29474
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   403
#ifdef ARM32
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   404
#define ARM32_ONLY(code) code
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   405
#define NOT_ARM32(code)
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   406
#else
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   407
#define ARM32_ONLY(code)
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   408
#define NOT_ARM32(code) code
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   409
#endif
81a5c5330d08 8072383: resolve conflicts between open and closed ports
dlong
parents: 29180
diff changeset
   410
29180
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   411
#ifdef AARCH64
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   412
#define AARCH64_ONLY(code) code
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   413
#define NOT_AARCH64(code)
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   414
#else
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   415
#define AARCH64_ONLY(code)
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   416
#define NOT_AARCH64(code) code
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   417
#endif
50369728b00e 8064611: AARCH64: Changes to HotSpot shared code
aph
parents: 22872
diff changeset
   418
6176
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   419
#ifdef JAVASE_EMBEDDED
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   420
#define EMBEDDED_ONLY(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   421
#define NOT_EMBEDDED(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   422
#else
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   423
#define EMBEDDED_ONLY(code)
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   424
#define NOT_EMBEDDED(code) code
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   425
#endif
4d9030fe341f 6953477: Increase portability and flexibility of building Hotspot
bobv
parents: 5547
diff changeset
   426
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   427
#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
   428
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6466
diff changeset
   429
#endif // SHARE_VM_UTILITIES_MACROS_HPP