mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 11:27:29 +00:00
run: limit created threads in test
The rm_session quota of the context area is not sufficient to start more then ~95 threads per address space. If one really needs so many threads per address space one could increase the quota or dynamically respond to it using the Expanding_rm_session class. Until now there is no need to support so much threads per address space. Issue #1122
This commit is contained in:
parent
9fd6034e94
commit
0b04f9de25
@ -51,7 +51,7 @@ static void test_context_alloc()
|
||||
* Create HELPER threads, which concurrently create CHILDREN threads each.
|
||||
* This most likely triggers any race in the thread-context allocation.
|
||||
*/
|
||||
enum { HELPER = 10, CHILDREN = 10 };
|
||||
enum { HELPER = 10, CHILDREN = 9 };
|
||||
|
||||
Helper<CHILDREN> helper[HELPER];
|
||||
|
||||
@ -166,6 +166,7 @@ struct Cpu_helper : Thread<0x1000>
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
static void test_cpu_session()
|
||||
{
|
||||
Cpu_helper thread0("prio high ", env()->cpu_session());
|
||||
@ -183,8 +184,11 @@ static void test_cpu_session()
|
||||
thread2.join();
|
||||
}
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("--- thread test started ---\n");
|
||||
|
||||
try {
|
||||
test_context_alloc();
|
||||
test_stack_alignment();
|
||||
|
Loading…
x
Reference in New Issue
Block a user