diff options
Diffstat (limited to 'cpukit/libcsupport/src/resource_snapshot.c')
-rw-r--r-- | cpukit/libcsupport/src/resource_snapshot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/resource_snapshot.c b/cpukit/libcsupport/src/resource_snapshot.c index 8ebbbdc84a..8c66f0f7c2 100644 --- a/cpukit/libcsupport/src/resource_snapshot.c +++ b/cpukit/libcsupport/src/resource_snapshot.c @@ -22,8 +22,9 @@ #include <rtems/libio_.h> #include <rtems/malloc.h> -#include <rtems/score/wkspace.h> #include <rtems/score/protectedheap.h> +#include <rtems/score/threadimpl.h> +#include <rtems/score/wkspace.h> #include <rtems/extensionimpl.h> @@ -116,6 +117,8 @@ void rtems_resource_snapshot_take(rtems_resource_snapshot *snapshot) free_all_delayed_blocks(); + _Thread_Kill_zombies(); + _Protected_heap_Get_information(RTEMS_Malloc_Heap, &snapshot->heap_info); _Thread_Disable_dispatch(); |