Changeset 289ad86 in rtems


Ignore:
Timestamp:
12/05/95 15:29:53 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
e57b0e2
Parents:
76b6fd0c
Message:

bug fix in statistics from Tony Bennett (tbennett@…)

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/malloc.c

    r76b6fd0c r289ad86  
    194194  if (return_this)
    195195  {
     196      unsigned32 actual_size;
    196197      unsigned32 current_depth;
    197       MSBUMP(lifetime_allocated, size);
     198      status = rtems_region_get_segment_size(RTEMS_Malloc_Heap, return_this, &actual_size);
     199      MSBUMP(lifetime_allocated, actual_size);
    198200      current_depth = malloc_stats.lifetime_allocated - malloc_stats.lifetime_freed;
    199201      if (current_depth > malloc_stats.max_depth)
  • c/src/lib/libc/malloc.c

    r76b6fd0c r289ad86  
    194194  if (return_this)
    195195  {
     196      unsigned32 actual_size;
    196197      unsigned32 current_depth;
    197       MSBUMP(lifetime_allocated, size);
     198      status = rtems_region_get_segment_size(RTEMS_Malloc_Heap, return_this, &actual_size);
     199      MSBUMP(lifetime_allocated, actual_size);
    198200      current_depth = malloc_stats.lifetime_allocated - malloc_stats.lifetime_freed;
    199201      if (current_depth > malloc_stats.max_depth)
  • cpukit/libcsupport/src/malloc.c

    r76b6fd0c r289ad86  
    194194  if (return_this)
    195195  {
     196      unsigned32 actual_size;
    196197      unsigned32 current_depth;
    197       MSBUMP(lifetime_allocated, size);
     198      status = rtems_region_get_segment_size(RTEMS_Malloc_Heap, return_this, &actual_size);
     199      MSBUMP(lifetime_allocated, actual_size);
    198200      current_depth = malloc_stats.lifetime_allocated - malloc_stats.lifetime_freed;
    199201      if (current_depth > malloc_stats.max_depth)
Note: See TracChangeset for help on using the changeset viewer.