qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 26/39] tests/tcg: make test-mmap a little less aggressive


From: Richard Henderson
Subject: Re: [PATCH v2 26/39] tests/tcg: make test-mmap a little less aggressive
Date: Thu, 8 Jul 2021 13:29:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 7/8/21 12:09 PM, Alex Bennée wrote:
-       for (i = 0; i < 0x1fff; i++)
+       for (i = 0; i < 0x1ff; i++)
        {
                size_t len;
len = pagesize + (pagesize * i & 7);

There's really no point in i >= 8.

We release all of the memory at the end of the loop; we'll probably get back the same pages on the 8'th iteration.


-       for (i = 0; i < 0x2fff; i++)
+       for (i = 0; i < 0x2ff; i++)

I'm not sure why this one is iterating more than twice?


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]