Changeset a75a7d3 in rtems


Ignore:
Timestamp:
Sep 21, 2018, 5:30:44 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4221d93
Parents:
56e61e24
git-author:
Sebastian Huber <sebastian.huber@…> (09/21/18 05:30:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/21/18 05:49:42)
Message:

stackchk: Remove heap hack

It is now guranteed that threads do not use a freed stack during
termination.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/stackchk/check.c

    r56e61e24 ra75a7d3  
    114114
    115115#else
    116   /*
    117    * We need this magic offset because during a task delete the task stack will
    118    * be freed before we enter the task switch extension which checks the stack.
    119    * The task stack free operation will write the next and previous pointers
    120    * for the free list into this area.
    121    */
    122116  #define Stack_check_Get_pattern( _the_stack ) \
    123     ((char *)(_the_stack)->area + sizeof(Heap_Block) - HEAP_BLOCK_HEADER_SIZE)
     117    ((char *)(_the_stack)->area)
    124118
    125119  #define Stack_check_Calculate_used( _low, _size, _high_water) \
Note: See TracChangeset for help on using the changeset viewer.