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

Commit

Permalink
Enqueue falsesharing
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams committed Aug 17, 2016
1 parent c6d7a20 commit 87d2fae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mscorlib/src/System/Threading/ThreadPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,11 @@ internal class QueueSegment
private volatile int indexes;

// Holds a segment of the queue. Enqueues/Dequeues start at element 0, and work their way up.
[FieldOffset(8)]
[FieldOffset(64)]
internal readonly IThreadPoolWorkItem[] nodes;
private const int QueueSegmentLength = 256;

[FieldOffset(64)]
[FieldOffset(128)]
// The next segment in the queue.
public volatile QueueSegment Next;

Expand Down

0 comments on commit 87d2fae

Please sign in to comment.