Changeset 50a50313 in rtems


Ignore:
Timestamp:
01/21/15 14:22:46 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
2486c492
Parents:
c625a641
git-author:
Sebastian Huber <sebastian.huber@…> (01/21/15 14:22:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/22/15 06:52:50)
Message:

score: Delete superfluous Heap_Statistics::instance

This value depends on the _Heap_Initialize() call sequence and carries
no useful information.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/shell/print_heapinfo.c

    rc625a641 r50a50313  
    3939{
    4040  printf(
    41     "Instance number:                          %12" PRIu32 "\n"
    4241    "Size of the allocatable area in bytes:    %12" PRIuPTR "\n"
    4342    "Minimum free size ever in bytes:          %12" PRIuPTR "\n"
     
    5150    "Total number of successful frees:         %12" PRIu32 "\n"
    5251    "Total number of successful resizes:       %12" PRIu32 "\n",
    53     s->instance,
    5452    s->size,
    5553    s->min_free_size,
  • cpukit/score/include/rtems/score/heap.h

    rc625a641 r50a50313  
    270270   */
    271271  uint64_t lifetime_freed;
    272 
    273   /**
    274    * @brief Instance number of this heap.
    275    */
    276   uint32_t instance;
    277272
    278273  /**
  • cpukit/score/src/heap.c

    rc625a641 r50a50313  
    3131  #error "invalid CPU_ALIGNMENT value"
    3232#endif
    33 
    34 static uint32_t instance = 0;
    3533
    3634/*
     
    285283  stats->free_blocks = 1;
    286284  stats->max_free_blocks = 1;
    287   stats->instance = instance++;
    288285
    289286  _Heap_Protection_set_delayed_free_fraction( heap, 2 );
  • doc/shell/memory.t

    rc625a641 r50a50313  
    547547@item Largest used block
    548548@item Total bytes used
    549 @item Instance number
    550549@item Size of the allocatable area in bytes
    551550@item Minimum free size ever in bytes
     
    585584Largest used block:                              16392
    586585Total bytes used:                                83536
    587 Instance number:                                     0
    588586Size of the allocatable area in bytes:       266291928
    589587Minimum free size ever in bytes:             266207360
Note: See TracChangeset for help on using the changeset viewer.