• Martin Blix Grydeland's avatar
    Push pool stats to global stats on delayed VCL release · 3694a418
    Martin Blix Grydeland authored
    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.
    3694a418
Name
Last commit
Last update
.circleci Loading commit data...
.github Loading commit data...
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
tools Loading commit data...
vmod Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.lgtm.yml Loading commit data...
.syntastic_c_config Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.Packaging Loading commit data...
README.rst Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
flint.lnt Loading commit data...
varnish-legacy.m4 Loading commit data...
varnish.m4 Loading commit data...
varnishapi-uninstalled.pc.in Loading commit data...
varnishapi.pc.in Loading commit data...
vtc.am Loading commit data...