The stats provided by MemoryCache might randomly decrease for a short time when a thread dies.
That problem did not occur to me in production but I would like to use a similar pattern in my library, so I would be interested to double check that the pattern is valid.
Description
The stats provided by MemoryCache might randomly decrease for a short time when a thread dies.
That problem did not occur to me in production but I would like to use a similar pattern in my library, so I would be interested to double check that the pattern is valid.
Reproduction Steps
_allStats
list anymore and is not in the dead threads accumulator eitherExpected behavior
The MemoryCache stats should always increase and never decrease.
Actual behavior
The MemoryCache stats might decrease in some rare case.