Automatic detection when thread counters are wrong