Push pool stats to global stats on delayed VCL release
Often in test cases the siutation comes where multiple threads go idle at the same time, and no new activity happens after that. This would potentially create the situation where the last thread to go idle sees that some thread is currently pushing stats to global, so it leaves its stats contribution on the pool stats to avoid contention. But without new activity in the future, the pool stats may stay in the pool accumulator indefinitely. This patch adds a check to see if there are unaccumulated statistics lingering in the pool accumulator when a thread wakes after idling to release its VCL reference. If there are, the thread takes on the task of pushing the pool stats to the global stats. This should help with test case stability, and potentially help with underflowed stats reported by some users.
Showing
Please register or sign in to comment