Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Fix a PAL spin lock issue (#19604)
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 fea6dca commit 36f66bf
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 36f66bf

Please sign in to comment.