[Openmp-commits] [openmp] [OpenMP] Implements __kmp_is_address_mapped for Solaris/Illumos. (PR #82930)

Brad Smith via Openmp-commits openmp-commits at lists.llvm.org
Mon Feb 26 19:48:08 PST 2024


================
@@ -436,6 +441,8 @@ static kmp_int32 __kmp_set_stack_info(int gtid, kmp_info_t *th) {
      pthread_attr_getstack may cause thread gtid aliasing */
   if (!KMP_UBER_GTID(gtid)) {
 
+#if !KMP_OS_SOLARIS
+    pthread_attr_t attr;
----------------
brad0 wrote:

I think it would be better to invert the logic and have this section at the top.

https://github.com/llvm/llvm-project/pull/82930


More information about the Openmp-commits mailing list