From: Tomas Weinfurt Date: Mon, 18 Jun 2018 19:54:23 +0000 (-0700) Subject: temporarily disable pthread based named mutexes on FreeBSD (dotnet/coreclr#18480) X-Git-Tag: submit/tizen/20210909.063632~11030^2~4578 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fabefabf17822d69f548d6a084dc2ff75e3669ec;p=platform%2Fupstream%2Fdotnet%2Fruntime.git temporarily disable pthread based named mutexes on FreeBSD (dotnet/coreclr#18480) Commit migrated from https://github.com/dotnet/coreclr/commit/ddca735a59327dedc681900e7d484491b769b7d6 --- diff --git a/src/coreclr/src/pal/src/include/pal/mutex.hpp b/src/coreclr/src/pal/src/include/pal/mutex.hpp index 6a46689..ba82c2d 100644 --- a/src/coreclr/src/pal/src/include/pal/mutex.hpp +++ b/src/coreclr/src/pal/src/include/pal/mutex.hpp @@ -71,7 +71,7 @@ DWORD SPINLOCKTryAcquire (LONG * lock); // 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/coreclr/issues/5456. -#if HAVE_FULLY_FEATURED_PTHREAD_MUTEXES && HAVE_FUNCTIONAL_PTHREAD_ROBUST_MUTEXES && !(defined(_ARM_) || defined(_ARM64_)) +#if HAVE_FULLY_FEATURED_PTHREAD_MUTEXES && HAVE_FUNCTIONAL_PTHREAD_ROBUST_MUTEXES && !(defined(_ARM_) || defined(_ARM64_) || defined(__FreeBSD__)) #define NAMED_MUTEX_USE_PTHREAD_MUTEX 1 #else #define NAMED_MUTEX_USE_PTHREAD_MUTEX 0