From d252e20ab5717afea2ac89543ab4e0d379434bb0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 10 Dec 2019 11:13:18 +0100 Subject: score: Simplify _Thread_Initialize() Allocate new thread queue heads during objects information extend. This removes an error case and the last dependency on the workspace in _Thread_Initialize(). Update #3835. --- testsuites/samples/unlimited/test1.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testsuites/samples/unlimited') diff --git a/testsuites/samples/unlimited/test1.c b/testsuites/samples/unlimited/test1.c index a529c71be3..3fe2688681 100644 --- a/testsuites/samples/unlimited/test1.c +++ b/testsuites/samples/unlimited/test1.c @@ -51,6 +51,7 @@ void test1() _Objects_Information_table[OBJECTS_CLASSIC_API][OBJECTS_RTEMS_TASKS]; objects_per_block = the_information->objects_per_block; the_information->objects_per_block = 0; + the_information->allocate = _Objects_Allocate_static; while (task_count < MAX_TASKS) { @@ -102,6 +103,7 @@ void test1() destroy_all_tasks("TEST1"); the_information->objects_per_block = objects_per_block; + the_information->allocate = _Thread_Allocate_unlimited; printf( " TEST1 : completed\n" ); } -- cgit v1.2.3