mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 13:54:38 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -240,4 +240,11 @@ inline int vsnprintf(char* buf, size_t count, const char* fmt, va_list argptr) {
|
|||
#define THREAD_LOCAL_DECL __declspec( thread )
|
||||
#endif
|
||||
|
||||
// Inlining support
|
||||
// MSVC has '__declspec(noinline)' but according to the official documentation
|
||||
// it only applies to member functions. There are reports though which pretend
|
||||
// that it also works for freestanding functions.
|
||||
#define NOINLINE __declspec(noinline)
|
||||
#define ALWAYSINLINE __forceinline
|
||||
|
||||
#endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_VISCPP_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue