mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 22:47:15 +08:00
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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user