Changeset 83333e9 in rtems for cpukit/libcsupport/src/malloc.c


Ignore:
Timestamp:
Dec 6, 2002, 1:49:57 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
e09c5c59
Parents:
2837a5e
Message:

2002-12-06 Joel Sherrill <joel@…>

  • src/malloc.c: Fixed code that incorrected did a disable dispatch instead of locking and unlocking the allocator mutex.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/malloc.c

    r2837a5e r83333e9  
    363363   Objects_Locations        location;
    364364 
     365  _RTEMS_Lock_allocator();                      /* to prevent deletion */
    365366   the_region = _Region_Get( RTEMS_Malloc_Heap, &location );
    366367   if ( location == OBJECTS_LOCAL )
    367368   {
    368369      _Heap_Walk( &the_region->Memory, source, printf_enabled );
    369       _Thread_Enable_dispatch();
    370370   }
     371  _RTEMS_Unlock_allocator();
    371372}
    372373
Note: See TracChangeset for help on using the changeset viewer.