From 23fec9f0e18dc4913fab818118f836af150b98f3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 27 Mar 2014 14:16:12 +0100 Subject: score: PR2152: Use allocator mutex for objects Use allocator mutex for objects allocate/free. This prevents that the thread dispatch latency depends on the workspace/heap fragmentation. --- testsuites/sptests/spobjgetnext/init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testsuites/sptests/spobjgetnext') diff --git a/testsuites/sptests/spobjgetnext/init.c b/testsuites/sptests/spobjgetnext/init.c index 9682c346fe..2695190239 100644 --- a/testsuites/sptests/spobjgetnext/init.c +++ b/testsuites/sptests/spobjgetnext/init.c @@ -108,7 +108,9 @@ rtems_task Init( /* XXX try with a manager with no objects created */ puts( "Init - _Objects_Active_count" ); + _Objects_Allocator_lock(); active_count = _Objects_Active_count( info ); + _Objects_Allocator_unlock(); rtems_test_assert( active_count == 1 ); TEST_END(); -- cgit v1.2.3