src/hotspot/share/utilities/globalDefinitions_xlc.hpp
author mr
Tue, 29 Oct 2019 13:52:04 -0700
changeset 58850 f4290bf1cc21
parent 58124 dc792fa77da0
child 58679 9c3209ff7550
permissions -rw-r--r--
8233137: runtime/ErrorHandling/VeryEarlyAssertTest.java fails after 8232080 Reviewed-by: stuefe, iignatyev, mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     1
/*
53130
106fc138542a 8215644: Clean up globalDefinitions_<compiler>.hpp
hseigel
parents: 49465
diff changeset
     2
 * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
53730
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
     3
 * Copyright (c) 2012, 2019 SAP SE. All rights reserved.
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     5
 *
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     8
 * published by the Free Software Foundation.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     9
 *
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    10
 * This code is distributed in the hope that it will be useful, but WITHOUT
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    11
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    12
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    13
 * version 2 for more details (a copy is included in the LICENSE file that
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    14
 * accompanied this code).
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    15
 *
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    16
 * You should have received a copy of the GNU General Public License version
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    17
 * 2 along with this work; if not, write to the Free Software Foundation,
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    18
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    19
 *
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    20
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    21
 * or visit www.oracle.com if you need additional information or have any
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    22
 * questions.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    23
 *
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    24
 */
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    25
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 53130
diff changeset
    26
#ifndef SHARE_UTILITIES_GLOBALDEFINITIONS_XLC_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 53130
diff changeset
    27
#define SHARE_UTILITIES_GLOBALDEFINITIONS_XLC_HPP
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    28
47659
a8e9aff89f7b 8189608: Remove duplicated jni.h
ihse
parents: 47216
diff changeset
    29
#include "jni.h"
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    30
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    31
// This file holds compiler-dependent includes,
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    32
// globally used constants & types, class (forward)
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    33
// declarations and a few frequently used utility functions.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    34
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    35
#include <ctype.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    36
#include <string.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    37
#include <stdarg.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    38
#include <stddef.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    39
#include <stdio.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    40
#include <stdlib.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    41
#include <wchar.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    42
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    43
#include <math.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    44
#include <time.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    45
#include <fcntl.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    46
#include <dlfcn.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    47
#include <pthread.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    48
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    49
#include <limits.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    50
#include <errno.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    51
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    52
#include <stdint.h>
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    53
57975
a333fdeb8de0 8224214: [AIX] Remove support for legacy xlc compiler
mbaesken
parents: 53730
diff changeset
    54
// check for xlc16 or higher
a333fdeb8de0 8224214: [AIX] Remove support for legacy xlc compiler
mbaesken
parents: 53730
diff changeset
    55
#ifdef __ibmxl_version__
a333fdeb8de0 8224214: [AIX] Remove support for legacy xlc compiler
mbaesken
parents: 53730
diff changeset
    56
  #if __ibmxl_version__ < 16
a333fdeb8de0 8224214: [AIX] Remove support for legacy xlc compiler
mbaesken
parents: 53730
diff changeset
    57
  #error "xlc < 16 not supported"
a333fdeb8de0 8224214: [AIX] Remove support for legacy xlc compiler
mbaesken
parents: 53730
diff changeset
    58
  #endif
a333fdeb8de0 8224214: [AIX] Remove support for legacy xlc compiler
mbaesken
parents: 53730
diff changeset
    59
#else
a333fdeb8de0 8224214: [AIX] Remove support for legacy xlc compiler
mbaesken
parents: 53730
diff changeset
    60
  #error "xlc < 16 not supported, macro __ibmxl_version__ not found"
53730
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    61
#endif
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    62
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    63
#ifndef _AIX
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    64
#error "missing AIX-specific definition _AIX"
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    65
#endif
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    66
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    67
// Use XLC compiler builtins instead of inline assembler
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    68
#define USE_XLC_BUILTINS
53730
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    69
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    70
#ifdef USE_XLC_BUILTINS
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    71
#include <builtins.h>
53730
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    72
// XLC V10 and higher provide the prototype for __dcbtst (void *);
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    73
#endif // USE_XLC_BUILTINS
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    74
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    75
// NULL vs NULL_WORD:
53730
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    76
// Some platform/tool-chain combinations can't assign NULL to an integer
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    77
// type so we define NULL_WORD to use in those contexts. For xlc they are the same.
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    78
#define NULL_WORD  NULL
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    79
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    80
// AIX also needs a 64 bit NULL to work as a null address pointer.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    81
// Most system includes on AIX would define it as an int 0 if not already defined with one
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    82
// exception: /usr/include/dirent.h will unconditionally redefine NULL to int 0 again.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    83
// In this case you need to copy the following defines to a position after #include <dirent.h>
53730
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    84
#include <dirent.h>
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    85
#ifdef _LP64
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    86
  #undef NULL
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    87
  #define NULL 0L
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    88
#else
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    89
  #ifndef NULL
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    90
    #define NULL 0
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    91
  #endif
53730
1d942423516c 8218136: minor hotspot adjustments for xlclang++ from xlc16 on AIX
mbaesken
parents: 53244
diff changeset
    92
#endif
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    93
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    94
// Compiler-specific primitive types
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    95
// All defs of int (uint16_6 etc) are defined in AIX' /usr/include/stdint.h
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    96
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    97
// Additional Java basic types
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    98
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    99
typedef uint8_t  jubyte;
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   100
typedef uint16_t jushort;
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   101
typedef uint32_t juint;
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   102
typedef uint64_t julong;
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   103
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   104
// checking for nanness
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   105
inline int g_isnan(float  f) { return isnan(f); }
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   106
inline int g_isnan(double f) { return isnan(f); }
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   107
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   108
// Checking for finiteness
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   109
inline int g_isfinite(jfloat  f)                 { return finite(f); }
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   110
inline int g_isfinite(jdouble f)                 { return finite(f); }
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   111
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   112
// Wide characters
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   113
inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); }
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   114
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   115
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   116
// Formatting.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   117
#ifdef _LP64
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   118
#define FORMAT64_MODIFIER "l"
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   119
#else // !_LP64
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   120
#define FORMAT64_MODIFIER "ll"
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   121
#endif // _LP64
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   122
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   123
// Cannot use xlc's offsetof as implementation of hotspot's
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   124
// offset_of(), because xlc warns about applying offsetof() to non-POD
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   125
// object and xlc cannot compile the expression offsetof(DataLayout,
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   126
// _cells[index]) in DataLayout::cell_offset() .  Therefore we define
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   127
// offset_of as it is defined for gcc.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   128
#define offset_of(klass,field) (size_t)((intx)&(((klass*)16)->field) - 16)
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   129
44319
8c42183dbd04 8176442: [aix] assert(_thr_current == 0L) failed: Thread::current already initialized
stuefe
parents: 42061
diff changeset
   130
// AIX 5.3 has buggy __thread support. (see JDK-8176442).
8c42183dbd04 8176442: [aix] assert(_thr_current == 0L) failed: Thread::current already initialized
stuefe
parents: 42061
diff changeset
   131
#define USE_LIBRARY_BASED_TLS_ONLY 1
8c42183dbd04 8176442: [aix] assert(_thr_current == 0L) failed: Thread::current already initialized
stuefe
parents: 42061
diff changeset
   132
37092
0e56e3c9d545 8151593: Cleanup definition/usage of INLINE/NOINLINE macros and add xlC support
simonis
parents: 35594
diff changeset
   133
// Inlining support
49465
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   134
//
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   135
// Be aware that for function/method declarations, xlC only supports the following
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   136
// syntax (i.e. the attribute must be placed AFTER the function/method declarator):
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   137
//
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   138
//   void* operator new(size_t size) throw() NOINLINE;
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   139
//
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   140
// For function/method defintions, the more common placement BEFORE the
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   141
// function/method declarator seems to be supported as well:
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   142
//
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   143
//   NOINLINE void* CHeapObj<F>::operator new(size_t size) throw() {...}
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   144
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   145
#define NOINLINE     __attribute__((__noinline__))
4881673579b7 8199698: Change 8199275 breaks template instantiation for xlC (and potentially other compliers)
simonis
parents: 49392
diff changeset
   146
#define ALWAYSINLINE inline __attribute__((__always_inline__))
37092
0e56e3c9d545 8151593: Cleanup definition/usage of INLINE/NOINLINE macros and add xlC support
simonis
parents: 35594
diff changeset
   147
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 53130
diff changeset
   148
#endif // SHARE_UTILITIES_GLOBALDEFINITIONS_XLC_HPP