2 ms·
Interesting enough .NET doesn't use the "memory access" trick, instead is uses either a direct poll against a variable, or for user code can sometimes just rude
by matthewwarren 10y ago
Interesting enough .NET doesn't use the "memory access" trick, instead is uses either a direct poll against a variable, or for user code can sometimes just rudely abort the running thread (if it knows it's safe to do).
See http://mattwarren.org/2016/08/08/GC-Pauses-and-Safe-Points/ http://mattwarren.org/2016/08/08/GC-Pauses-and-Safe-Points/ for all the gory details