Fix an assertion failure in the thread pool's QueueUserWorkItemCallbackBase (#25482)
authorKoundinya Veluri <kouvel@users.noreply.github.com>
Fri, 28 Jun 2019 20:08:22 +0000 (13:08 -0700)
committerStephen Toub <stoub@microsoft.com>
Fri, 28 Jun 2019 20:08:22 +0000 (16:08 -0400)
commitc191f92b30e212b7638e0ae3b71240c73991b369
treebd98952e8ec7c4fc5c3df20d20b1387cc1c8ca6a
parent141d587472ee2fe6ab522c603c352936defeaac3
Fix an assertion failure in the thread pool's QueueUserWorkItemCallbackBase (#25482)

Fixes https://github.com/dotnet/coreclr/issues/25242
- The issue could be that there is no memory barrier (or in the wrong place) on the thread reading the value, and an old value could be cached and read
src/System.Private.CoreLib/shared/System/Threading/ThreadPool.cs