Commit 94292309 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Add a warning about theoretical race condition

parent 05d988b3
......@@ -80,6 +80,13 @@ public:
void update(bool migrationInProgress)
{
if (m_rawPointerUsers.testAndSetAcquire(0, 1)) {
/// TODO: theoretically, there is a race condition:
/// if the user's code enters critical section and
/// releases an object *after* we started purging
/// garbage. In such a case we can free still used
/// tile. I didn't check this hypothesis yet though.
releasePoolSafely(&m_pendingActions);
if (!migrationInProgress) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment