Skip to content

Commit

Permalink
Fix a PAL spin lock issue
Browse files Browse the repository at this point in the history
Fix for https://github.com/dotnet/coreclr/issues/18486
- Lock release needs to be at least volatile
  • Loading branch information
kouvel committed Aug 22, 2018
1 parent 98a7f87 commit dec809d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pal/src/synchobj/mutex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ void SPINLOCKAcquire (LONG * lock, unsigned int flags)

void SPINLOCKRelease (LONG * lock)
{
*lock = 0;
VolatileStore(lock, 0);
}

DWORD SPINLOCKTryAcquire (LONG * lock)
Expand Down

0 comments on commit dec809d

Please sign in to comment.