Commit 02700315 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Kevin Wolf
Browse files

coroutine: trim down nesting level in perf_nesting test



20000 nested coroutines require 20 GB of virtual address space.
Only nest 1000 of them so that the test (only enabled with
"-m perf" on the command line) runs on 32-bit machines too.

Cc: qemu-stable@nongnu.org
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 40239784
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ static void perf_nesting(void)
    double duration;

    maxcycles = 100000000;
    maxnesting = 20000;
    maxnesting = 1000;
    Coroutine *root;
    NestData nd = {
        .n_enter  = 0,