~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to erts/emulator/beam/erl_db_hash.c

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090215164252-dxpjjuq108nz4noa
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
                     (DbTable *) tb,
262
262
                     (void *) fx,
263
263
                     sizeof(FixedDeletion));
 
264
        ERTS_ETS_MISC_MEM_ADD(-sizeof(FixedDeletion));
264
265
 
265
266
        while (b != NULL) {
266
267
            if (b->hvalue == INVALID_HASH) {
685
686
                    erts_db_alloc(ERTS_ALC_T_DB_FIX_DEL,
686
687
                                  (DbTable *) tb,
687
688
                                  sizeof(FixedDeletion));
 
689
                ERTS_ETS_MISC_MEM_ADD(sizeof(FixedDeletion));
688
690
                fixd->slot = ix;
689
691
                fixd->next = tb->fixdel;
690
692
                tb->fixdel = fixd;
745
747
                    erts_db_alloc(ERTS_ALC_T_DB_FIX_DEL,
746
748
                                  (DbTable *) tb,
747
749
                                  sizeof(FixedDeletion));
 
750
                ERTS_ETS_MISC_MEM_ADD(sizeof(FixedDeletion));
748
751
                fixd->slot = ix;
749
752
                fixd->next = tb->fixdel;
750
753
                tb->fixdel = fixd;
1378
1381
                                  (DbTable *) tb,
1379
1382
                                  sizeof(FixedDeletion));
1380
1383
                int ix;
 
1384
                ERTS_ETS_MISC_MEM_ADD(sizeof(FixedDeletion));
1381
1385
                HASH(tb, (*current_list)->hvalue, ix);
1382
1386
                fixd->slot = ix;
1383
1387
                fixd->next = tb->fixdel;
1533
1537
                    erts_db_alloc(ERTS_ALC_T_DB_FIX_DEL,
1534
1538
                                  (DbTable *) tb,
1535
1539
                                  sizeof(FixedDeletion));
 
1540
                ERTS_ETS_MISC_MEM_ADD(sizeof(FixedDeletion));
1536
1541
                fixd->slot = chain_pos;
1537
1542
                fixd->next = tb->fixdel;
1538
1543
                tb->fixdel = fixd;
1728
1733
                erts_db_alloc(ERTS_ALC_T_DB_FIX_DEL,
1729
1734
                              (DbTable *) tb,
1730
1735
                              sizeof(FixedDeletion));
 
1736
            ERTS_ETS_MISC_MEM_ADD(sizeof(FixedDeletion));
1731
1737
            fixd->slot = i;
1732
1738
            fixd->next = tb->fixdel;
1733
1739
            tb->fixdel = fixd;
1783
1789
                     (DbTable *) tb,
1784
1790
                     (void *) fx,
1785
1791
                     sizeof(FixedDeletion));
 
1792
        ERTS_ETS_MISC_MEM_ADD(-sizeof(FixedDeletion));
1786
1793
    }
1787
1794
    while(n--) {
1788
1795
        HashDbTerm** bp = *sp;
1842
1849
                     (DbTable *) tb,
1843
1850
                     (void *) fx,
1844
1851
                     sizeof(FixedDeletion));
 
1852
        ERTS_ETS_MISC_MEM_ADD(-sizeof(FixedDeletion));
1845
1853
        if (++done >= 2*DELETE_RECORD_LIMIT) {
1846
1854
            return 0;           /* Not done */
1847
1855
        }