< prev index next >

hotspot/src/share/vm/memory/allocation.hpp

Print this page




  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_MEMORY_ALLOCATION_HPP
  26 #define SHARE_VM_MEMORY_ALLOCATION_HPP
  27 
  28 #include "runtime/globals.hpp"
  29 #include "utilities/globalDefinitions.hpp"
  30 #include "utilities/macros.hpp"
  31 #ifdef COMPILER1
  32 #include "c1/c1_globals.hpp"
  33 #endif
  34 #ifdef COMPILER2
  35 #include "opto/c2_globals.hpp"
  36 #endif
  37 





  38 #include <new>
  39 
  40 #define ARENA_ALIGN_M1 (((size_t)(ARENA_AMALLOC_ALIGNMENT)) - 1)
  41 #define ARENA_ALIGN_MASK (~((size_t)ARENA_ALIGN_M1))
  42 #define ARENA_ALIGN(x) ((((size_t)(x)) + ARENA_ALIGN_M1) & ARENA_ALIGN_MASK)
  43 
  44 
  45 // noinline attribute
  46 #ifdef _WINDOWS
  47   #define _NOINLINE_  __declspec(noinline)
  48 #else
  49   #if __GNUC__ < 3    // gcc 2.x does not support noinline attribute
  50     #define _NOINLINE_
  51   #else
  52     #define _NOINLINE_ __attribute__ ((noinline))
  53   #endif
  54 #endif
  55 
  56 class AllocFailStrategy {
  57 public:




  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_MEMORY_ALLOCATION_HPP
  26 #define SHARE_VM_MEMORY_ALLOCATION_HPP
  27 
  28 #include "runtime/globals.hpp"
  29 #include "utilities/globalDefinitions.hpp"
  30 #include "utilities/macros.hpp"
  31 #ifdef COMPILER1
  32 #include "c1/c1_globals.hpp"
  33 #endif
  34 #ifdef COMPILER2
  35 #include "opto/c2_globals.hpp"
  36 #endif
  37 
  38 #if defined _WINDOWS && _MSC_VER >= 1900
  39  // 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
  40 #pragma warning( disable : 4577 )
  41 #endif
  42 
  43 #include <new>
  44 
  45 #define ARENA_ALIGN_M1 (((size_t)(ARENA_AMALLOC_ALIGNMENT)) - 1)
  46 #define ARENA_ALIGN_MASK (~((size_t)ARENA_ALIGN_M1))
  47 #define ARENA_ALIGN(x) ((((size_t)(x)) + ARENA_ALIGN_M1) & ARENA_ALIGN_MASK)
  48 
  49 
  50 // noinline attribute
  51 #ifdef _WINDOWS
  52   #define _NOINLINE_  __declspec(noinline)
  53 #else
  54   #if __GNUC__ < 3    // gcc 2.x does not support noinline attribute
  55     #define _NOINLINE_
  56   #else
  57     #define _NOINLINE_ __attribute__ ((noinline))
  58   #endif
  59 #endif
  60 
  61 class AllocFailStrategy {
  62 public:


< prev index next >