diff options
Diffstat (limited to 'cpukit/score/src/pheapwalk.c')
-rw-r--r-- | cpukit/score/src/pheapwalk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/pheapwalk.c b/cpukit/score/src/pheapwalk.c index 4aa2279902..5a89c0de8e 100644 --- a/cpukit/score/src/pheapwalk.c +++ b/cpukit/score/src/pheapwalk.c @@ -39,7 +39,7 @@ bool _Protected_heap_Walk( * * NOTE: Dispatching is also disabled during initialization. */ - if ( !_Thread_Dispatch_disable_level ) { + if ( _Thread_Dispatch_in_critical_section() == false ) { _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); |