You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CompareExchange_long benchmark sometimes reports very long execution time on x86 #1497
Activity
AndyAyersMS commentedon Oct 27, 2020
Here's a repro... issue is lock cmpxchg8 splitting a cache line, so it requires a particular data alignment.
The code below has a 50/50 chance that one of those
longfields does this.Sample data
AndyAyersMS commentedon Oct 27, 2020
Also explains why we don't see this on x64, because classes there are 8 byte aligned. On x86, classes are only 4 byte aligned.
danmoseley commentedon Oct 27, 2020
cc @kunalspathak