< prev index next >

src/hotspot/share/utilities/globalDefinitions.hpp

Print this page
@@ -43,14 +43,26 @@
  #define NOINLINE
  #endif
  #ifndef ALWAYSINLINE
  #define ALWAYSINLINE inline
  #endif
+ #ifndef __HOT
+ #define __HOT
+ #endif
+ #ifndef __COLD
+ #define __COLD
+ #endif
  
  #ifndef ATTRIBUTE_ALIGNED
  #define ATTRIBUTE_ALIGNED(x)
  #endif
+ #ifndef LIKELY
+ #define LIKELY(condition)   (condition)
+ #endif
+ #ifndef UNLIKELY
+ #define UNLIKELY(condition) (condition)
+ #endif
  
  #ifndef ATTRIBUTE_FLATTEN
  #define ATTRIBUTE_FLATTEN
  #endif
  

@@ -1207,7 +1219,6 @@
  
  template<typename K> bool primitive_equals(const K& k0, const K& k1) {
    return k0 == k1;
  }
  
- 
  #endif // SHARE_UTILITIES_GLOBALDEFINITIONS_HPP
< prev index next >