summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/unlimited/test1.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-10 11:13:18 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-12 09:08:41 +0100
commitd252e20ab5717afea2ac89543ab4e0d379434bb0 (patch)
tree3842cffab1df421f283ebd5c6c90577e8469efc1 /testsuites/samples/unlimited/test1.c
parentscore: Add _Objects_Allocate_with_extend() (diff)
downloadrtems-d252e20ab5717afea2ac89543ab4e0d379434bb0.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--testsuites/samples/unlimited/test1.c2
1 files changed, 2 insertions, 0 deletions
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" );
}