Diffusion Krita 96e8dce2b90d

Fix race condition in the lockfree hash table's garbage collector

Authored by dkazakov on Mar 21 2019, 1:47 PM.

Description

Fix race condition in the lockfree hash table's garbage collector

This is the same problem that has been present in the lockfree
stack until recently. We should check for m_rawPointerUsers when
we already have a local copy of the free nodes list. Only in this
case it guarantees that noone added elements between the check and
the actual destruction.

Details

Committed
dkazakovMar 21 2019, 1:47 PM
Parents
R37:64dc4d5b7431: Fix a race condition in KisLocklessStack
Branches
Unknown
Tags
Unknown