• Poul-Henning Kamp's avatar
    Add a final backstop, so we absolutely 100% certainly do not · 9c4f3e80
    Poul-Henning Kamp authored
    try to delete a objhead while it still has a waiting list,
    by forcing the last ref holder to rush the WL.
    
    Since the hasher owns the refcounts on objhead, we cannot just
    mingle req and objcore refcounts.
    
    Fortunately we don't need to add another refcounter, because all
    we really care about is the wl being empty when we drop the last
    ref.
    
    The wl/hsh_rush() mechanism will work differently with different
    thread-scheduling schenarios, and I cannot definitively rule out
    that we can drop the last ref on an oh, while there are still req's
    on the waiting list.
    
    Given that, and the existence proof in ticket #1823's race, this
    might have been the indicated memory-trampler.
    9c4f3e80
Name
Last commit
Last update
..
hash_classic.c Loading commit data...
hash_critbit.c Loading commit data...
hash_simple_list.c Loading commit data...
hash_slinger.h Loading commit data...
mgt_hash.c Loading commit data...