Skip to content

Commit

Permalink
temporarily disable ThreadPoolWorkQueue.Dispatch assertion
Browse files Browse the repository at this point in the history
See dotnet/runtime#104803

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
  • Loading branch information
dicej committed Jul 29, 2024
1 parent 8dcb2ae commit 5d93456
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,9 @@ internal static bool Dispatch()
// thread because it sees a Determining or Scheduled stage, and the current thread is the last thread processing
// work items, the current thread must either see the work item queued by the enqueuer, or it must see a stage of
// Scheduled, and try to dequeue again or request another thread.
#if !TARGET_WASI // https://github.com/dotnet/runtime/issues/104803
Debug.Assert(workQueue._separated.queueProcessingStage == (int)QueueProcessingStage.Scheduled);
#endif
workQueue._separated.queueProcessingStage = (int)QueueProcessingStage.Determining;
Interlocked.MemoryBarrier();

Expand Down

0 comments on commit 5d93456

Please sign in to comment.