< prev index next >

src/hotspot/share/utilities/globalDefinitions.hpp

Print this page

1328   return k0 == k1;
1329 }
1330 
1331 template<typename K> int primitive_compare(const K& k0, const K& k1) {
1332   return ((k0 < k1) ? -1 : (k0 == k1) ? 0 : 1);
1333 }
1334 
1335 //----------------------------------------------------------------------------------------------------
1336 
1337 // Allow use of C++ thread_local when approved - see JDK-8282469.
1338 #define APPROVED_CPP_THREAD_LOCAL thread_local
1339 
1340 // Converts any type T to a reference type.
1341 template<typename T>
1342 std::add_rvalue_reference_t<T> declval() noexcept;
1343 
1344 // Quickly test to make sure IEEE-754 subnormal numbers are correctly
1345 // handled.
1346 bool IEEE_subnormal_handling_OK();
1347 










1348 #endif // SHARE_UTILITIES_GLOBALDEFINITIONS_HPP

1328   return k0 == k1;
1329 }
1330 
1331 template<typename K> int primitive_compare(const K& k0, const K& k1) {
1332   return ((k0 < k1) ? -1 : (k0 == k1) ? 0 : 1);
1333 }
1334 
1335 //----------------------------------------------------------------------------------------------------
1336 
1337 // Allow use of C++ thread_local when approved - see JDK-8282469.
1338 #define APPROVED_CPP_THREAD_LOCAL thread_local
1339 
1340 // Converts any type T to a reference type.
1341 template<typename T>
1342 std::add_rvalue_reference_t<T> declval() noexcept;
1343 
1344 // Quickly test to make sure IEEE-754 subnormal numbers are correctly
1345 // handled.
1346 bool IEEE_subnormal_handling_OK();
1347 
1348 #if defined(AMD64) || defined (AARCH64)
1349 #define LOOM_MONITOR_SUPPORT true
1350 #define LOOM_MONITOR_SUPPORT_ONLY(code) code
1351 #define NOT_LOOM_MONITOR_SUPPORT(code)
1352 #else
1353 #undef LOOM_MONITOR_SUPPORT
1354 #define LOOM_MONITOR_SUPPORT_ONLY(code)
1355 #define NOT_LOOM_MONITOR_SUPPORT(code) code
1356 #endif
1357 
1358 #endif // SHARE_UTILITIES_GLOBALDEFINITIONS_HPP
< prev index next >