summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-08-25 14:30:01 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-08-25 14:30:01 +0000
commit1b5a0ecef7b983fbad6ce52af10c0683ed1989b6 (patch)
treed9000eea13b2a61b1e54bb91319a086f3bbd131c /cpukit/libcsupport
parent2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-1b5a0ecef7b983fbad6ce52af10c0683ed1989b6.tar.bz2
2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/free.c, libcsupport/src/malloc.c, libcsupport/src/malloc_initialize.c: Remove heap walks in case RTEMS_DEBUG is defined.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/free.c4
-rw-r--r--cpukit/libcsupport/src/malloc.c7
-rw-r--r--cpukit/libcsupport/src/malloc_initialize.c10
3 files changed, 0 insertions, 21 deletions
diff --git a/cpukit/libcsupport/src/free.c b/cpukit/libcsupport/src/free.c
index c2dea1c361..d3ee2937f9 100644
--- a/cpukit/libcsupport/src/free.c
+++ b/cpukit/libcsupport/src/free.c
@@ -28,10 +28,6 @@ void free(
if ( !ptr )
return;
- #if defined(RTEMS_HEAP_DEBUG)
- _Protected_heap_Walk( RTEMS_Malloc_Heap, 0, false );
- #endif
-
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
diff --git a/cpukit/libcsupport/src/malloc.c b/cpukit/libcsupport/src/malloc.c
index cf0fd158b4..6bb77a4630 100644
--- a/cpukit/libcsupport/src/malloc.c
+++ b/cpukit/libcsupport/src/malloc.c
@@ -49,13 +49,6 @@ void *malloc(
return NULL;
/*
- * Walk the heap and verify its integrity
- */
- #if defined(RTEMS_HEAP_DEBUG)
- _Protected_heap_Walk( RTEMS_Malloc_Heap, 0, false );
- #endif
-
- /*
* Try to give a segment in the current heap if there is not
* enough space then try to grow the heap.
* If this fails then return a NULL pointer.
diff --git a/cpukit/libcsupport/src/malloc_initialize.c b/cpukit/libcsupport/src/malloc_initialize.c
index 72a2d6dbef..e00a868e5a 100644
--- a/cpukit/libcsupport/src/malloc_initialize.c
+++ b/cpukit/libcsupport/src/malloc_initialize.c
@@ -110,15 +110,5 @@ void RTEMS_Malloc_Initialize(
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
-
- #if defined(RTEMS_HEAP_DEBUG)
- if ( _Protected_heap_Walk( RTEMS_Malloc_Heap, 0, false ) ) {
- printk( "Malloc heap not initialized correctly\n" );
- rtems_print_buffer( heap_begin, 32 );
- printk( "\n" );
- rtems_print_buffer( (heap_begin + heap_size) - 48, 48 );
- rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
- }
- #endif
}
#endif