Changeset 77c252 in git for omalloc/omBinPage.c


Ignore:
Timestamp:
Aug 29, 2016, 4:27:45 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
6e11aa961bbfbb6bc15840300419dc9f93030b90
Parents:
e13075181a6b6dcbcce1151d34e2fc5a26ab3c24
Message:
update InternalUsedBytesMalloc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • omalloc/omBinPage.c

    re13075 r77c252  
    355355  {
    356356    om_BinPageIndicies = (unsigned long*) omAllocFromSystem((index_diff + 1)*SIZEOF_LONG);
     357    om_Info.InternalUsedBytesMalloc+=(index_diff + 1)*SIZEOF_LONG;
    357358    om_MaxBinPageIndex = high_index;
    358359    om_MinBinPageIndex = low_index;
     
    367368    om_BinPageIndicies  = (unsigned long*) omReallocSizeFromSystem(om_BinPageIndicies, old_length*SIZEOF_LONG,
    368369                                                                   new_length*SIZEOF_LONG);
     370    om_Info.InternalUsedBytesMalloc+= (new_length-old_length)*SIZEOF_LONG;
    369371    if (low_index < om_MinBinPageIndex)
    370372    {
Note: See TracChangeset for help on using the changeset viewer.