< prev index next >

src/hotspot/share/utilities/globalDefinitions.hpp

Print this page

1341   return k0 == k1;
1342 }
1343 
1344 template<typename K> int primitive_compare(const K& k0, const K& k1) {
1345   return ((k0 < k1) ? -1 : (k0 == k1) ? 0 : 1);
1346 }
1347 
1348 //----------------------------------------------------------------------------------------------------
1349 
1350 // Allow use of C++ thread_local when approved - see JDK-8282469.
1351 #define APPROVED_CPP_THREAD_LOCAL thread_local
1352 
1353 // Converts any type T to a reference type.
1354 template<typename T>
1355 std::add_rvalue_reference_t<T> declval() noexcept;
1356 
1357 // Quickly test to make sure IEEE-754 subnormal numbers are correctly
1358 // handled.
1359 bool IEEE_subnormal_handling_OK();
1360 










1361 #endif // SHARE_UTILITIES_GLOBALDEFINITIONS_HPP

1341   return k0 == k1;
1342 }
1343 
1344 template<typename K> int primitive_compare(const K& k0, const K& k1) {
1345   return ((k0 < k1) ? -1 : (k0 == k1) ? 0 : 1);
1346 }
1347 
1348 //----------------------------------------------------------------------------------------------------
1349 
1350 // Allow use of C++ thread_local when approved - see JDK-8282469.
1351 #define APPROVED_CPP_THREAD_LOCAL thread_local
1352 
1353 // Converts any type T to a reference type.
1354 template<typename T>
1355 std::add_rvalue_reference_t<T> declval() noexcept;
1356 
1357 // Quickly test to make sure IEEE-754 subnormal numbers are correctly
1358 // handled.
1359 bool IEEE_subnormal_handling_OK();
1360 
1361 #if defined(AMD64) || defined (AARCH64)
1362 #define LOOM_MONITOR_SUPPORT true
1363 #define LOOM_MONITOR_SUPPORT_ONLY(code) code
1364 #define NOT_LOOM_MONITOR_SUPPORT(code)
1365 #else
1366 #undef LOOM_MONITOR_SUPPORT
1367 #define LOOM_MONITOR_SUPPORT_ONLY(code)
1368 #define NOT_LOOM_MONITOR_SUPPORT(code) code
1369 #endif
1370 
1371 #endif // SHARE_UTILITIES_GLOBALDEFINITIONS_HPP
< prev index next >