Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/heap.cfa

    r578ec01c r7dd98b6  
    1010// Created On       : Tue Dec 19 21:58:35 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Jan  2 23:29:41 2022
    13 // Update Count     : 1058
     12// Last Modified On : Mon Aug  9 19:03:02 2021
     13// Update Count     : 1040
    1414//
    1515
     
    263263#ifdef __STATISTICS__
    264264// Heap statistics counters.
    265 static unsigned int malloc_calls, malloc_0_calls;
    266 static unsigned long long int malloc_storage_request, malloc_storage_alloc;
    267 static unsigned int aalloc_calls, aalloc_0_calls;
    268 static unsigned long long int aalloc_storage_request, aalloc_storage_alloc;
    269 static unsigned int calloc_calls, calloc_0_calls;
    270 static unsigned long long int calloc_storage_request, calloc_storage_alloc;
    271 static unsigned int memalign_calls, memalign_0_calls;
    272 static unsigned long long int memalign_storage_request, memalign_storage_alloc;
    273 static unsigned int amemalign_calls, amemalign_0_calls;
    274 static unsigned long long int amemalign_storage_request, amemalign_storage_alloc;
    275 static unsigned int cmemalign_calls, cmemalign_0_calls;
    276 static unsigned long long int cmemalign_storage_request, cmemalign_storage_alloc;
    277 static unsigned int resize_calls, resize_0_calls;
    278 static unsigned long long int resize_storage_request, resize_storage_alloc;
    279 static unsigned int realloc_calls, realloc_0_calls;
    280 static unsigned long long int realloc_storage_request, realloc_storage_alloc;
    281 static unsigned int free_calls, free_null_calls;
    282 static unsigned long long int free_storage_request, free_storage_alloc;
     265static unsigned int malloc_zero_calls, malloc_calls;
     266static unsigned long long int malloc_storage;
     267static unsigned int aalloc_zero_calls, aalloc_calls;
     268static unsigned long long int aalloc_storage;
     269static unsigned int calloc_zero_calls, calloc_calls;
     270static unsigned long long int calloc_storage;
     271static unsigned int memalign_zero_calls, memalign_calls;
     272static unsigned long long int memalign_storage;
     273static unsigned int amemalign_zero_calls, amemalign_calls;
     274static unsigned long long int amemalign_storage;
     275static unsigned int cmemalign_zero_calls, cmemalign_calls;
     276static unsigned long long int cmemalign_storage;
     277static unsigned int resize_zero_calls, resize_calls;
     278static unsigned long long int resize_storage;
     279static unsigned int realloc_zero_calls, realloc_calls;
     280static unsigned long long int realloc_storage;
     281static unsigned int free_zero_calls, free_calls;
     282static unsigned long long int free_storage;
    283283static unsigned int mmap_calls;
    284 static unsigned long long int mmap_storage_request, mmap_storage_alloc;
     284static unsigned long long int mmap_storage;
    285285static unsigned int munmap_calls;
    286 static unsigned long long int munmap_storage_request, munmap_storage_alloc;
     286static unsigned long long int munmap_storage;
    287287static unsigned int sbrk_calls;
    288288static unsigned long long int sbrk_storage;
     
    294294        char helpText[1024];
    295295        __cfaabi_bits_print_buffer( STDERR_FILENO, helpText, sizeof(helpText),
    296                                                                 "\nHeap statistics: (storage request / allocation + header)\n"
    297                                                                 "  malloc    >0 calls %'u; 0 calls %'u; storage %'llu / %'llu bytes\n"
    298                                                                 "  aalloc    >0 calls %'u; 0 calls %'u; storage %'llu / %'llu bytes\n"
    299                                                                 "  calloc    >0 calls %'u; 0 calls %'u; storage %'llu / %'llu bytes\n"
    300                                                                 "  memalign  >0 calls %'u; 0 calls %'u; storage %'llu / %'llu bytes\n"
    301                                                                 "  amemalign >0 calls %'u; 0 calls %'u; storage %'llu / %'llu bytes\n"
    302                                                                 "  cmemalign >0 calls %'u; 0 calls %'u; storage %'llu / %'llu bytes\n"
    303                                                                 "  resize    >0 calls %'u; 0 calls %'u; storage %'llu / %'llu bytes\n"
    304                                                                 "  realloc   >0 calls %'u; 0 calls %'u; storage %'llu / %'llu bytes\n"
    305                                                                 "  free      !null calls %'u; null calls %'u; storage %'llu / %'llu bytes\n"
    306                                                                 "  sbrk      calls %'u; storage %'llu bytes\n"
    307                                                                 "  mmap      calls %'u; storage %'llu / %'llu bytes\n"
    308                                                                 "  munmap    calls %'u; storage %'llu / %'llu bytes\n",
    309                                                                 malloc_calls, malloc_0_calls, malloc_storage_request, malloc_storage_alloc,
    310                                                                 aalloc_calls, aalloc_0_calls, aalloc_storage_request, aalloc_storage_alloc,
    311                                                                 calloc_calls, calloc_0_calls, calloc_storage_request, calloc_storage_alloc,
    312                                                                 memalign_calls, memalign_0_calls, memalign_storage_request, memalign_storage_alloc,
    313                                                                 amemalign_calls, amemalign_0_calls, amemalign_storage_request, amemalign_storage_alloc,
    314                                                                 cmemalign_calls, cmemalign_0_calls, cmemalign_storage_request, cmemalign_storage_alloc,
    315                                                                 resize_calls, resize_0_calls, resize_storage_request, resize_storage_alloc,
    316                                                                 realloc_calls, realloc_0_calls, realloc_storage_request, realloc_storage_alloc,
    317                                                                 free_calls, free_null_calls, free_storage_request, free_storage_alloc,
    318                                                                 sbrk_calls, sbrk_storage,
    319                                                                 mmap_calls, mmap_storage_request, mmap_storage_alloc,
    320                                                                 munmap_calls, munmap_storage_request, munmap_storage_alloc
     296                                                                "\nHeap statistics:\n"
     297                                                                "  malloc    0-calls %'u; >0-calls %'u; storage %'llu bytes\n"
     298                                                                "  aalloc    0-calls %'u; >0-calls %'u; storage %'llu bytes\n"
     299                                                                "  calloc    0-calls %'u; >0-calls %'u; storage %'llu bytes\n"
     300                                                                "  memalign  0-calls %'u; >0-calls %'u; storage %'llu bytes\n"
     301                                                                "  amemalign 0-calls %'u; >0-calls %'u; storage %'llu bytes\n"
     302                                                                "  cmemalign 0-calls %'u; >0-calls %'u; storage %'llu bytes\n"
     303                                                                "  resize    0-calls %'u; >0-calls %'u; storage %'llu bytes\n"
     304                                                                "  realloc   0-calls %'u; >0-calls %'u; storage %'llu bytes\n"
     305                                                                "  free      0-calls %'u; >0-calls %'u; storage %'llu bytes\n"
     306                                                                "  mmap      calls %'u; storage %'llu bytes\n"
     307                                                                "  munmap    calls %'u; storage %'llu bytes\n"
     308                                                                "  sbrk      calls %'u; storage %'llu bytes\n",
     309                                                                malloc_zero_calls, malloc_calls, malloc_storage,
     310                                                                aalloc_zero_calls, aalloc_calls, aalloc_storage,
     311                                                                calloc_zero_calls, calloc_calls, calloc_storage,
     312                                                                memalign_zero_calls, memalign_calls, memalign_storage,
     313                                                                amemalign_zero_calls, amemalign_calls, amemalign_storage,
     314                                                                cmemalign_zero_calls, cmemalign_calls, cmemalign_storage,
     315                                                                resize_zero_calls, resize_calls, resize_storage,
     316                                                                realloc_zero_calls, realloc_calls, realloc_storage,
     317                                                                free_zero_calls, free_calls, free_storage,
     318                                                                mmap_calls, mmap_storage,
     319                                                                munmap_calls, munmap_storage,
     320                                                                sbrk_calls, sbrk_storage
    321321                );
    322322} // printStats
     
    329329                                                "<sizes>\n"
    330330                                                "</sizes>\n"
    331                                                 "<total type=\"malloc\" >0 count=\"%'u;\" 0 count=\"%'u;\" size=\"%'llu / %'llu\"/> bytes\n"
    332                                                 "<total type=\"aalloc\" >0 count=\"%'u;\" 0 count=\"%'u;\" size=\"%'llu / %'llu\"/> bytes\n"
    333                                                 "<total type=\"calloc\" >0 count=\"%'u;\" 0 count=\"%'u;\" size=\"%'llu / %'llu\"/> bytes\n"
    334                                                 "<total type=\"memalign\" >0 count=\"%'u;\" 0 count=\"%'u;\" size=\"%'llu / %'llu\"/> bytes\n"
    335                                                 "<total type=\"amemalign\" >0 count=\"%'u;\" 0 count=\"%'u;\" size=\"%'llu / %'llu\"/> bytes\n"
    336                                                 "<total type=\"cmemalign\" >0 count=\"%'u;\" 0 count=\"%'u;\" size=\"%'llu / %'llu\"/> bytes\n"
    337                                                 "<total type=\"resize\" >0 count=\"%'u;\" 0 count=\"%'u;\" size=\"%'llu / %'llu\"/> bytes\n"
    338                                                 "<total type=\"realloc\" >0 count=\"%'u;\" 0 count=\"%'u;\" size=\"%'llu / %'llu\"/> bytes\n"
    339                                                 "<total type=\"free\" !null=\"%'u;\" 0 null=\"%'u;\" size=\"%'llu / %'llu\"/> bytes\n"
     331                                                "<total type=\"malloc\" 0 count=\"%'u;\" >0 count=\"%'u;\" size=\"%'llu\"/> bytes\n"
     332                                                "<total type=\"aalloc\" 0 count=\"%'u;\" >0 count=\"%'u;\" size=\"%'llu\"/> bytes\n"
     333                                                "<total type=\"calloc\" 0 count=\"%'u;\" >0 count=\"%'u;\" size=\"%'llu\"/> bytes\n"
     334                                                "<total type=\"memalign\" 0 count=\"%'u;\" >0 count=\"%'u;\" size=\"%'llu\"/> bytes\n"
     335                                                "<total type=\"amemalign\" 0 count=\"%'u;\" >0 count=\"%'u;\" size=\"%'llu\"/> bytes\n"
     336                                                "<total type=\"cmemalign\" 0 count=\"%'u;\" >0 count=\"%'u;\" size=\"%'llu\"/> bytes\n"
     337                                                "<total type=\"resize\" 0 count=\"%'u;\" >0 count=\"%'u;\" size=\"%'llu\"/> bytes\n"
     338                                                "<total type=\"realloc\" 0 count=\"%'u;\" >0 count=\"%'u;\" size=\"%'llu\"/> bytes\n"
     339                                                "<total type=\"free\" 0 count=\"%'u;\" >0 count=\"%'u;\" size=\"%'llu\"/> bytes\n"
     340                                                "<total type=\"mmap\" count=\"%'u;\" size=\"%'llu\"/> bytes\n"
     341                                                "<total type=\"munmap\" count=\"%'u;\" size=\"%'llu\"/> bytes\n"
    340342                                                "<total type=\"sbrk\" count=\"%'u;\" size=\"%'llu\"/> bytes\n"
    341                                                 "<total type=\"mmap\" count=\"%'u;\" size=\"%'llu / %'llu\" / > bytes\n"
    342                                                 "<total type=\"munmap\" count=\"%'u;\" size=\"%'llu / %'llu\"/> bytes\n"
    343343                                                "</malloc>",
    344                                                 malloc_calls, malloc_0_calls, malloc_storage_request, malloc_storage_alloc,
    345                                                 aalloc_calls, aalloc_0_calls, aalloc_storage_request, aalloc_storage_alloc,
    346                                                 calloc_calls, calloc_0_calls, calloc_storage_request, calloc_storage_alloc,
    347                                                 memalign_calls, memalign_0_calls, memalign_storage_request, memalign_storage_alloc,
    348                                                 amemalign_calls, amemalign_0_calls, amemalign_storage_request, amemalign_storage_alloc,
    349                                                 cmemalign_calls, cmemalign_0_calls, cmemalign_storage_request, cmemalign_storage_alloc,
    350                                                 resize_calls, resize_0_calls, resize_storage_request, resize_storage_alloc,
    351                                                 realloc_calls, realloc_0_calls, realloc_storage_request, realloc_storage_alloc,
    352                                                 free_calls, free_null_calls, free_storage_request, free_storage_alloc,
    353                                                 sbrk_calls, sbrk_storage,
    354                                                 mmap_calls, mmap_storage_request, mmap_storage_alloc,
    355                                                 munmap_calls, munmap_storage_request, munmap_storage_alloc
     344                                                malloc_zero_calls, malloc_calls, malloc_storage,
     345                                                aalloc_zero_calls, aalloc_calls, aalloc_storage,
     346                                                calloc_zero_calls, calloc_calls, calloc_storage,
     347                                                memalign_zero_calls, memalign_calls, memalign_storage,
     348                                                amemalign_zero_calls, amemalign_calls, amemalign_storage,
     349                                                cmemalign_zero_calls, cmemalign_calls, cmemalign_storage,
     350                                                resize_zero_calls, resize_calls, resize_storage,
     351                                                realloc_zero_calls, realloc_calls, realloc_storage,
     352                                                free_zero_calls, free_calls, free_storage,
     353                                                mmap_calls, mmap_storage,
     354                                                munmap_calls, munmap_storage,
     355                                                sbrk_calls, sbrk_storage
    356356                );
    357357        __cfaabi_bits_write( fileno( stream ), helpText, len ); // ensures all bytes written or exit
     
    577577                #ifdef __STATISTICS__
    578578                __atomic_add_fetch( &mmap_calls, 1, __ATOMIC_SEQ_CST );
    579                 __atomic_add_fetch( &mmap_storage_request, size, __ATOMIC_SEQ_CST );
    580                 __atomic_add_fetch( &mmap_storage_alloc, tsize, __ATOMIC_SEQ_CST );
     579                __atomic_add_fetch( &mmap_storage, tsize, __ATOMIC_SEQ_CST );
    581580                #endif // __STATISTICS__
    582581
     
    627626                #ifdef __STATISTICS__
    628627                __atomic_add_fetch( &munmap_calls, 1, __ATOMIC_SEQ_CST );
    629                 __atomic_add_fetch( &munmap_storage_request, header->kind.real.size, __ATOMIC_SEQ_CST );
    630                 __atomic_add_fetch( &munmap_storage_alloc, size, __ATOMIC_SEQ_CST );
     628                __atomic_add_fetch( &munmap_storage, size, __ATOMIC_SEQ_CST );
    631629                #endif // __STATISTICS__
    632630                if ( munmap( header, size ) == -1 ) {
     
    644642                #ifdef __STATISTICS__
    645643                __atomic_add_fetch( &free_calls, 1, __ATOMIC_SEQ_CST );
    646                 __atomic_add_fetch( &free_storage_request, header->kind.real.size, __ATOMIC_SEQ_CST );
    647                 __atomic_add_fetch( &free_storage_alloc, size, __ATOMIC_SEQ_CST );
     644                __atomic_add_fetch( &free_storage, size, __ATOMIC_SEQ_CST );
    648645                #endif // __STATISTICS__
    649646
     
    822819                if ( likely( size > 0 ) ) {
    823820                        __atomic_add_fetch( &malloc_calls, 1, __ATOMIC_SEQ_CST );
    824                         __atomic_add_fetch( &malloc_storage_request, size, __ATOMIC_SEQ_CST );
     821                        __atomic_add_fetch( &malloc_storage, size, __ATOMIC_SEQ_CST );
    825822                } else {
    826                         __atomic_add_fetch( &malloc_0_calls, 1, __ATOMIC_SEQ_CST );
     823                        __atomic_add_fetch( &malloc_zero_calls, 1, __ATOMIC_SEQ_CST );
    827824                } // if
    828825                #endif // __STATISTICS__
     
    838835                if ( likely( size > 0 ) ) {
    839836                        __atomic_add_fetch( &aalloc_calls, 1, __ATOMIC_SEQ_CST );
    840                         __atomic_add_fetch( &aalloc_storage_request, size, __ATOMIC_SEQ_CST );
     837                        __atomic_add_fetch( &aalloc_storage, size, __ATOMIC_SEQ_CST );
    841838                } else {
    842                         __atomic_add_fetch( &aalloc_0_calls, 1, __ATOMIC_SEQ_CST );
     839                        __atomic_add_fetch( &aalloc_zero_calls, 1, __ATOMIC_SEQ_CST );
    843840                } // if
    844841                #endif // __STATISTICS__
     
    853850          if ( unlikely( size ) == 0 ) {                        // 0 BYTE ALLOCATION RETURNS NULL POINTER
    854851                        #ifdef __STATISTICS__
    855                         __atomic_add_fetch( &calloc_0_calls, 1, __ATOMIC_SEQ_CST );
     852                        __atomic_add_fetch( &calloc_zero_calls, 1, __ATOMIC_SEQ_CST );
    856853                        #endif // __STATISTICS__
    857854                        return 0p;
     
    859856                #ifdef __STATISTICS__
    860857                __atomic_add_fetch( &calloc_calls, 1, __ATOMIC_SEQ_CST );
    861                 __atomic_add_fetch( &calloc_storage_request, dim * elemSize, __ATOMIC_SEQ_CST );
     858                __atomic_add_fetch( &calloc_storage, dim * elemSize, __ATOMIC_SEQ_CST );
    862859                #endif // __STATISTICS__
    863860
     
    894891          if ( unlikely( size == 0 ) ) {                                        // special cases
    895892                        #ifdef __STATISTICS__
    896                         __atomic_add_fetch( &resize_0_calls, 1, __ATOMIC_SEQ_CST );
     893                        __atomic_add_fetch( &resize_zero_calls, 1, __ATOMIC_SEQ_CST );
    897894                        #endif // __STATISTICS__
    898895                        free( oaddr );
     
    905902          if ( unlikely( oaddr == 0p ) ) {
    906903                        #ifdef __STATISTICS__
    907                         __atomic_add_fetch( &resize_storage_request, size, __ATOMIC_SEQ_CST );
     904                        __atomic_add_fetch( &resize_storage, size, __ATOMIC_SEQ_CST );
    908905                        #endif // __STATISTICS__
    909906                        return mallocNoStats( size );
     
    924921
    925922                #ifdef __STATISTICS__
    926                 __atomic_add_fetch( &resize_storage_request, size, __ATOMIC_SEQ_CST );
     923                __atomic_add_fetch( &resize_storage, size, __ATOMIC_SEQ_CST );
    927924                #endif // __STATISTICS__
    928925
     
    939936          if ( unlikely( size == 0 ) ) {                                        // special cases
    940937                        #ifdef __STATISTICS__
    941                         __atomic_add_fetch( &realloc_0_calls, 1, __ATOMIC_SEQ_CST );
     938                        __atomic_add_fetch( &realloc_zero_calls, 1, __ATOMIC_SEQ_CST );
    942939                        #endif // __STATISTICS__
    943940                        free( oaddr );
     
    950947          if ( unlikely( oaddr == 0p ) ) {
    951948                        #ifdef __STATISTICS__
    952                         __atomic_add_fetch( &realloc_storage_request, size, __ATOMIC_SEQ_CST );
     949                        __atomic_add_fetch( &realloc_storage, size, __ATOMIC_SEQ_CST );
    953950                        #endif // __STATISTICS__
    954951                        return mallocNoStats( size );
     
    972969
    973970                #ifdef __STATISTICS__
    974                 __atomic_add_fetch( &realloc_storage_request, size, __ATOMIC_SEQ_CST );
     971                __atomic_add_fetch( &realloc_storage, size, __ATOMIC_SEQ_CST );
    975972                #endif // __STATISTICS__
    976973
     
    10031000                if ( likely( size > 0 ) ) {
    10041001                        __atomic_add_fetch( &memalign_calls, 1, __ATOMIC_SEQ_CST );
    1005                         __atomic_add_fetch( &memalign_storage_request, size, __ATOMIC_SEQ_CST );
     1002                        __atomic_add_fetch( &memalign_storage, size, __ATOMIC_SEQ_CST );
    10061003                } else {
    1007                         __atomic_add_fetch( &memalign_0_calls, 1, __ATOMIC_SEQ_CST );
     1004                        __atomic_add_fetch( &memalign_zero_calls, 1, __ATOMIC_SEQ_CST );
    10081005                } // if
    10091006                #endif // __STATISTICS__
     
    10191016                if ( likely( size > 0 ) ) {
    10201017                        __atomic_add_fetch( &cmemalign_calls, 1, __ATOMIC_SEQ_CST );
    1021                         __atomic_add_fetch( &cmemalign_storage_request, size, __ATOMIC_SEQ_CST );
     1018                        __atomic_add_fetch( &cmemalign_storage, size, __ATOMIC_SEQ_CST );
    10221019                } else {
    1023                         __atomic_add_fetch( &cmemalign_0_calls, 1, __ATOMIC_SEQ_CST );
     1020                        __atomic_add_fetch( &cmemalign_zero_calls, 1, __ATOMIC_SEQ_CST );
    10241021                } // if
    10251022                #endif // __STATISTICS__
     
    10341031          if ( unlikely( size ) == 0 ) {                                        // 0 BYTE ALLOCATION RETURNS NULL POINTER
    10351032                        #ifdef __STATISTICS__
    1036                         __atomic_add_fetch( &cmemalign_0_calls, 1, __ATOMIC_SEQ_CST );
     1033                        __atomic_add_fetch( &cmemalign_zero_calls, 1, __ATOMIC_SEQ_CST );
    10371034                        #endif // __STATISTICS__
    10381035                        return 0p;
     
    10401037                #ifdef __STATISTICS__
    10411038                __atomic_add_fetch( &cmemalign_calls, 1, __ATOMIC_SEQ_CST );
    1042                 __atomic_add_fetch( &cmemalign_storage_request, dim * elemSize, __ATOMIC_SEQ_CST );
     1039                __atomic_add_fetch( &cmemalign_storage, dim * elemSize, __ATOMIC_SEQ_CST );
    10431040                #endif // __STATISTICS__
    10441041
     
    11041101          if ( unlikely( addr == 0p ) ) {                                       // special case
    11051102                        #ifdef __STATISTICS__
    1106                         __atomic_add_fetch( &free_null_calls, 1, __ATOMIC_SEQ_CST );
     1103                        __atomic_add_fetch( &free_zero_calls, 1, __ATOMIC_SEQ_CST );
    11071104                        #endif // __STATISTICS__
    11081105
     
    12831280  if ( unlikely( size == 0 ) ) {                                                // special cases
    12841281                #ifdef __STATISTICS__
    1285                 __atomic_add_fetch( &resize_0_calls, 1, __ATOMIC_SEQ_CST );
     1282                __atomic_add_fetch( &resize_zero_calls, 1, __ATOMIC_SEQ_CST );
    12861283                #endif // __STATISTICS__
    12871284                free( oaddr );
     
    12971294                #ifdef __STATISTICS__
    12981295                __atomic_add_fetch( &resize_calls, 1, __ATOMIC_SEQ_CST );
    1299                 __atomic_add_fetch( &resize_storage_request, size, __ATOMIC_SEQ_CST );
     1296                __atomic_add_fetch( &resize_storage, size, __ATOMIC_SEQ_CST );
    13001297                #endif // __STATISTICS__
    13011298                return memalignNoStats( nalign, size );
     
    13321329
    13331330        #ifdef __STATISTICS__
    1334         __atomic_add_fetch( &resize_storage_request, size, __ATOMIC_SEQ_CST );
     1331        __atomic_add_fetch( &resize_storage, size, __ATOMIC_SEQ_CST );
    13351332        #endif // __STATISTICS__
    13361333
     
    13451342  if ( unlikely( size == 0 ) ) {                                                // special cases
    13461343                #ifdef __STATISTICS__
    1347                 __atomic_add_fetch( &realloc_0_calls, 1, __ATOMIC_SEQ_CST );
     1344                __atomic_add_fetch( &realloc_zero_calls, 1, __ATOMIC_SEQ_CST );
    13481345                #endif // __STATISTICS__
    13491346                free( oaddr );
     
    13591356                #ifdef __STATISTICS__
    13601357                __atomic_add_fetch( &realloc_calls, 1, __ATOMIC_SEQ_CST );
    1361                 __atomic_add_fetch( &realloc_storage_request, size, __ATOMIC_SEQ_CST );
     1358                __atomic_add_fetch( &realloc_storage, size, __ATOMIC_SEQ_CST );
    13621359                #endif // __STATISTICS__
    13631360                return memalignNoStats( nalign, size );
     
    13831380        #ifdef __STATISTICS__
    13841381        __atomic_add_fetch( &realloc_calls, 1, __ATOMIC_SEQ_CST );
    1385         __atomic_add_fetch( &realloc_storage_request, size, __ATOMIC_SEQ_CST );
     1382        __atomic_add_fetch( &realloc_storage, size, __ATOMIC_SEQ_CST );
    13861383        #endif // __STATISTICS__
    13871384
Note: See TracChangeset for help on using the changeset viewer.