From 8b18037f203b2b2dfceae4fb46e7eca388f229ad Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 28 Apr 2022 08:56:59 +0200 Subject: heap: Fix heap statistics with protection enabled Close #4644. --- cpukit/score/src/heapallocate.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpukit/score/src/heapallocate.c') diff --git a/cpukit/score/src/heapallocate.c b/cpukit/score/src/heapallocate.c index 162a5f8933..049a1279b1 100644 --- a/cpukit/score/src/heapallocate.c +++ b/cpukit/score/src/heapallocate.c @@ -93,6 +93,15 @@ return search_again; } + + void _Heap_Protection_free_all_delayed_blocks( Heap_Control *heap ) + { + bool search_again; + + do { + search_again = _Heap_Protection_free_delayed_blocks( heap, 0 ); + } while ( search_again ); + } #endif #ifdef RTEMS_HEAP_DEBUG -- cgit v1.2.3