From 83333e94732531f8bf5b4d4d33f90e94f7b9a678 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 6 Dec 2002 13:49:57 +0000 Subject: 2002-12-06 Joel Sherrill * src/malloc.c: Fixed code that incorrected did a disable dispatch instead of locking and unlocking the allocator mutex. --- cpukit/libcsupport/ChangeLog | 5 +++++ cpukit/libcsupport/src/malloc.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'cpukit') 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 + + * src/malloc.c: Fixed code that incorrected did a disable dispatch + instead of locking and unlocking the allocator mutex. + 2002-12-06 Ralf Corsepius * 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 -- cgit v1.2.3