From 31cd7eb907133929846e5d229d18cc8bc77bde63 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Wed, 8 Jun 2022 01:31:29 +0200 Subject: [PATCH] Remove named mutex workaround for Linux arm/arm64 (#70381) The workaround is no longer needed as the underlying issue in glibc was fixed in glibc 2.24 and the minimum glibc we now support is 2.27. --- src/coreclr/pal/src/include/pal/mutex.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/coreclr/pal/src/include/pal/mutex.hpp b/src/coreclr/pal/src/include/pal/mutex.hpp index 2e9d444..464f0f7 100644 --- a/src/coreclr/pal/src/include/pal/mutex.hpp +++ b/src/coreclr/pal/src/include/pal/mutex.hpp @@ -120,15 +120,13 @@ Miscellaneous existing shared memory, naming, and waiting infrastructure is not suitable for this purpose, and is not used. */ -// - Temporarily disabling usage of pthread process-shared mutexes on ARM/ARM64 due to functional issues that cannot easily be -// detected with code due to hangs. See https://github.com/dotnet/runtime/issues/6014. // - On FreeBSD, pthread process-shared robust mutexes cannot be placed in shared memory mapped independently by the processes // involved. See https://github.com/dotnet/runtime/issues/10519. // - On OSX, pthread robust mutexes were/are not available at the time of this writing. In case they are made available in the // future, their use is disabled for compatibility. #if HAVE_FULLY_FEATURED_PTHREAD_MUTEXES && \ HAVE_FUNCTIONAL_PTHREAD_ROBUST_MUTEXES && \ - !(defined(HOST_ARM) || defined(HOST_ARM64) || defined(__FreeBSD__) || defined(TARGET_OSX)) + !(defined(__FreeBSD__) || defined(TARGET_OSX)) #define NAMED_MUTEX_USE_PTHREAD_MUTEX 1 #else -- 2.7.4