Changeset a853075 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:25Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7ca51cc
Parents:
1caddc6
git-author:
Dzejrou <dzejrou@…> (2018-07-03 19:56:22)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:25)
Message:

cpp: fixed test crashes on amd64 caused by list invalidation during erase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/__bits/adt/hash_table_policies.hpp

    r1caddc6 ra853075  
    342342                auto tmp = current;
    343343                current = current->next;
    344                 tmp->unlink();
    345 
    346                 --table.size_;
     344                tmp->next = tmp;
     345                tmp->prev = tmp;
     346
    347347                if (!table.keys_equal(key, tmp->value))
    348348                {
     
    355355                else
    356356                {
     357                    --table.size_;
    357358                    ++res;
    358359
Note: See TracChangeset for help on using the changeset viewer.