mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-24 05:14:52 +02:00
8151593: Cleanup definition/usage of INLINE/NOINLINE macros and add xlC support
Reviewed-by: coleenp, stuefe
This commit is contained in:
parent
d1c99d7509
commit
f90ee56f23
12 changed files with 65 additions and 92 deletions
|
@ -593,15 +593,7 @@ void os::Linux::libpthread_init() {
|
|||
// _expand_stack_to() assumes its frame size is less than page size, which
|
||||
// should always be true if the function is not inlined.
|
||||
|
||||
#if __GNUC__ < 3 // gcc 2.x does not support noinline attribute
|
||||
#define NOINLINE
|
||||
#else
|
||||
#define NOINLINE __attribute__ ((noinline))
|
||||
#endif
|
||||
|
||||
static void _expand_stack_to(address bottom) NOINLINE;
|
||||
|
||||
static void _expand_stack_to(address bottom) {
|
||||
static void NOINLINE _expand_stack_to(address bottom) {
|
||||
address sp;
|
||||
size_t size;
|
||||
volatile char *p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue