Put mutex in shared memory, for real this time
commit8578866e95b2ce09b157430870813cfa7c9ed384
authorKasper Kopec <kasper@fb.com>
Fri, 11 Mar 2016 02:44:17 +0000 (10 18:44 -0800)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Fri, 11 Mar 2016 03:00:29 +0000 (10 19:00 -0800)
treeab839010fa12c20e7e56f93b71a8954b91ba8156
parentce698006699175f5bfd3dda724af92117c8a5253
Put mutex in shared memory, for real this time

Summary: Turns out that pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED); is not a magic incantation and unless we put the mutex in shared memory, then each thread has it's own one. Shitty testing on my part.

Reviewed By: int3

Differential Revision: D3039677

fb-gh-sync-id: 9a34d33c16bd50ae7856ea8e8c8f0247520dce4b
shipit-source-id: 9a34d33c16bd50ae7856ea8e8c8f0247520dce4b
hphp/hack/src/heap/hh_shared.c