From: Paolo Bonzini Date: Tue, 19 Feb 2013 10:59:10 +0000 (+0100) Subject: coroutine: trim down nesting level in perf_nesting test X-Git-Tag: v1.4.1~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51968b8503a00b5128fb4e3ed14efb8dc69579ce;p=thirdparty%2Fqemu.git 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: Paolo Bonzini Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf (cherry picked from commit 027003152f4cf21952f9282b4487daf3fdd372ba) Signed-off-by: Michael Roth --- diff --git a/tests/test-coroutine.c b/tests/test-coroutine.c index 4c6cc81fb98..39be046ec71 100644 --- a/tests/test-coroutine.c +++ b/tests/test-coroutine.c @@ -183,7 +183,7 @@ static void perf_nesting(void) double duration; maxcycles = 100000000; - maxnesting = 20000; + maxnesting = 1000; Coroutine *root; NestData nd = { .n_enter = 0,