[PATCH] D57241: [scudo] Delay allocations in the RSS check test

Yvan Roux via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 26 01:02:35 PST 2019


Bots back to green, Thanks Kostya

On Fri, 25 Jan 2019 at 18:24, Kostya Kortchinsky via Phabricator
<reviews at reviews.llvm.org> wrote:
>
> This revision was automatically updated to reflect the committed changes.
> Closed by commit rCRT352220: [scudo] Delay allocations in the RSS check test (authored by cryptoad, committed by ).
>
> Changed prior to commit:
>   https://reviews.llvm.org/D57241?vs=183550&id=183561#toc
>
> Repository:
>   rCRT Compiler Runtime
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D57241/new/
>
> https://reviews.llvm.org/D57241
>
> Files:
>   test/scudo/rss.c
>
>
> Index: test/scudo/rss.c
> ===================================================================
> --- test/scudo/rss.c
> +++ test/scudo/rss.c
> @@ -30,7 +30,8 @@
>  int main(int argc, char *argv[]) {
>    int returned_null = 0;
>    for (int i = 0; i < kNumAllocs; i++) {
> -    if ((i & 0xf) == 0)
> +    // sleep for 100ms every 8 allocations, to allow the RSS check to catch up.
> +    if (i != 0 && (i & 0x7) == 0)
>        usleep(100000);
>      allocs[i] = malloc(kAllocSize);
>      if (allocs[i])
>
>


More information about the llvm-commits mailing list