Closed kenteltest closed 6 years ago
https://github.com/Microsoft/referencesource/blob/7de0d30c7c5ef56ab60fee41fcdb50005d24979a/mscorlib/system/threading/ThreadLocal.cs#L372
If 2 threads enter this part of the code, there may be a situation where ts_finalizationHelper refers to an instance of one LinkedSlotVolatile object, and ts_slotArray refers to another instance
Although I may be wrong
Depends on the implementation which is affected by the bug. Try https://github.com/dotnet/core, for example.
Thanks
https://github.com/Microsoft/referencesource/blob/7de0d30c7c5ef56ab60fee41fcdb50005d24979a/mscorlib/system/threading/ThreadLocal.cs#L372
If 2 threads enter this part of the code, there may be a situation where ts_finalizationHelper refers to an instance of one LinkedSlotVolatile object, and ts_slotArray refers to another instance
Although I may be wrong