diff options
Diffstat (limited to 'cpukit/score/src/objectshrinkinformation.c')
-rw-r--r-- | cpukit/score/src/objectshrinkinformation.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/objectshrinkinformation.c b/cpukit/score/src/objectshrinkinformation.c index 9731c2179d..2f64cd2502 100644 --- a/cpukit/score/src/objectshrinkinformation.c +++ b/cpukit/score/src/objectshrinkinformation.c @@ -19,6 +19,7 @@ #endif #include <rtems/score/objectimpl.h> +#include <rtems/score/assert.h> #include <rtems/score/chainimpl.h> #include <rtems/score/wkspace.h> @@ -30,6 +31,8 @@ void _Objects_Shrink_information( uint32_t block; uint32_t index_base; + _Assert( _Debug_Is_owner_of_allocator() ); + /* * Search the list to find block or chunk with all objects inactive. */ @@ -55,7 +58,7 @@ void _Objects_Shrink_information( node = _Chain_Next( node ); if ( index >= index_base && index < index_end ) { - _Chain_Extract( &object->Node ); + _Chain_Extract_unprotected( &object->Node ); } } |