[rtems commit] heap: Free all delayed blocks during resize
Sebastian Huber
sebh at rtems.org
Tue Jun 25 15:01:50 UTC 2013
Module: rtems
Branch: master
Commit: c497657ffbe17bb38f660652b1d809dee2d775f3
Changeset: http://git.rtems.org/rtems/commit/?id=c497657ffbe17bb38f660652b1d809dee2d775f3
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 25 14:31:47 2013 +0200
heap: Free all delayed blocks during resize
---
cpukit/score/src/heapresizeblock.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/cpukit/score/src/heapresizeblock.c b/cpukit/score/src/heapresizeblock.c
index fb62319..742e03f 100644
--- a/cpukit/score/src/heapresizeblock.c
+++ b/cpukit/score/src/heapresizeblock.c
@@ -104,6 +104,10 @@ Heap_Resize_status _Heap_Resize_block(
if ( _Heap_Is_block_in_heap( heap, block ) ) {
_Heap_Protection_block_check( heap, block );
+
+ /* TODO: Free only the next block if necessary */
+ _Heap_Protection_free_all_delayed_blocks( heap );
+
return _Heap_Resize_block_checked(
heap,
block,
More information about the vc
mailing list