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.
This commit is contained in:
Joel Sherrill
2002-12-06 13:49:57 +00:00
parent 2837a5eace
commit 83333e9473
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -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.
+2 -1
View File
@@ -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