< prev index next >

src/hotspot/share/utilities/globalDefinitions.hpp

Print this page

        

@@ -36,14 +36,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
 
 // These are #defines to selectively turn on/off the Print(Opto)Assembly
 // capabilities. Choices should be led by a tradeoff between
 // code size and improved supportability.
 // if PRINT_ASSEMBLY then PRINT_ABSTRACT_ASSEMBLY must be true as well

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