< prev index next >

src/hotspot/share/utilities/globalDefinitions_gcc.hpp

Print this page
@@ -163,6 +163,12 @@
  
  // Alignment
  //
  #define ATTRIBUTE_ALIGNED(x) __attribute__((aligned(x)))
  
+ #define LIKELY(condition)   __builtin_expect(static_cast<bool>(condition), 1)
+ #define UNLIKELY(condition) __builtin_expect(static_cast<bool>(condition), 0)
+ 
+ #define __COLD __attribute__((cold))
+ #define __HOT  __attribute__((hot))
+ 
  #endif // SHARE_UTILITIES_GLOBALDEFINITIONS_GCC_HPP
< prev index next >