diff options
Diffstat (limited to 'cpukit/libcsupport')
-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 |