Changeset 77c252 in git


Ignore:
Timestamp:
Aug 29, 2016, 4:27:45 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
6e11aa961bbfbb6bc15840300419dc9f93030b90
Parents:
e13075181a6b6dcbcce1151d34e2fc5a26ab3c24
Message:
update InternalUsedBytesMalloc
Location:
omalloc
Files:
2 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    {
  • omalloc/omStats.c

    re13075 r77c252  
    123123          om_Info.UsedPages, om_Info.AvailPages,
    124124          om_Info.CurrentRegionsAlloc, om_Info.MaxRegionsAlloc,
    125           om_Info.InternalUsedBytesMalloc/1024);
     125          om_Info.InternalUsedBytesMalloc);
    126126}
    127127
Note: See TracChangeset for help on using the changeset viewer.