summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-04-28 08:56:59 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-04-28 09:16:54 +0200
commit8b18037f203b2b2dfceae4fb46e7eca388f229ad (patch)
tree4d2839fac7b365974647549ae0812b4bbedd4c7a /cpukit/include/rtems
parentsp65/init.c: Add file header and license (diff)
downloadrtems-8b18037f203b2b2dfceae4fb46e7eca388f229ad.tar.bz2
heap: Fix heap statistics with protection enabled
Close #4644.
Diffstat (limited to 'cpukit/include/rtems')
-rw-r--r--cpukit/include/rtems/score/heapimpl.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/cpukit/include/rtems/score/heapimpl.h b/cpukit/include/rtems/score/heapimpl.h
index e6b6feb800..2b1ef21c83 100644
--- a/cpukit/include/rtems/score/heapimpl.h
+++ b/cpukit/include/rtems/score/heapimpl.h
@@ -427,15 +427,7 @@ Heap_Block *_Heap_Block_allocate(
(*heap->Protection.block_error)( heap, block, reason );
}
- static inline void _Heap_Protection_free_all_delayed_blocks( Heap_Control *heap )
- {
- uintptr_t large = 0
- - (uintptr_t) HEAP_BLOCK_HEADER_SIZE
- - (uintptr_t) HEAP_ALLOC_BONUS
- - (uintptr_t) 1;
- void *p = _Heap_Allocate( heap, large );
- _Heap_Free( heap, p );
- }
+ void _Heap_Protection_free_all_delayed_blocks( Heap_Control *heap );
#endif
/**