diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-12-06 13:49:57 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-12-06 13:49:57 +0000 |
commit | 83333e94732531f8bf5b4d4d33f90e94f7b9a678 (patch) | |
tree | 3ba668c3309cb8f9e6b510a7745f79738d1cd3c9 | |
parent | 2002-12-06 Vladimir Nesic <vnesic@dkts.co.yu> (diff) | |
download | rtems-83333e94732531f8bf5b4d4d33f90e94f7b9a678.tar.bz2 |
2002-12-06 Joel Sherrill <joel@OARcorp.com>
* src/malloc.c: Fixed code that incorrected did a disable dispatch
instead of locking and unlocking the allocator mutex.
-rw-r--r-- | cpukit/libcsupport/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libcsupport/src/malloc.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog index 99e81c45aa..b48163e19b 100644 --- a/cpukit/libcsupport/ChangeLog +++ b/cpukit/libcsupport/ChangeLog @@ -1,3 +1,8 @@ +2002-12-06 Joel Sherrill <joel@OARcorp.com> + + * src/malloc.c: Fixed code that incorrected did a disable dispatch + instead of locking and unlocking the allocator mutex. + 2002-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * configure.ac: Add various checks to enhance portability. diff --git a/cpukit/libcsupport/src/malloc.c b/cpukit/libcsupport/src/malloc.c index 9f02311478..4f5f103154 100644 --- a/cpukit/libcsupport/src/malloc.c +++ b/cpukit/libcsupport/src/malloc.c @@ -362,12 +362,13 @@ void malloc_walk(size_t source, size_t printf_enabled) register Region_Control *the_region; Objects_Locations location; + _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Get( RTEMS_Malloc_Heap, &location ); if ( location == OBJECTS_LOCAL ) { _Heap_Walk( &the_region->Memory, source, printf_enabled ); - _Thread_Enable_dispatch(); } + _RTEMS_Unlock_allocator(); } #else |