[all-commits] [llvm/llvm-project] 672783: [scudo] Reduce the scope of AllocAfterFork

Kostya Kortchinsky via All-commits all-commits at lists.llvm.org
Thu Oct 7 14:02:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6727832c324c1fb43946275d24e2931fde94bc0d
      https://github.com/llvm/llvm-project/commit/6727832c324c1fb43946275d24e2931fde94bc0d
  Author: Kostya Kortchinsky <kostyak at google.com>
  Date:   2021-10-07 (Thu, 07 Oct 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tests/wrappers_cpp_test.cpp

  Log Message:
  -----------
  [scudo] Reduce the scope of AllocAfterFork

`ScudoWrappersCppTest.AllocAfterFork` was failing obscurely sometimes.
Someone pointed us to Linux's `vm.max_map_count` that can be
significantly lower on some machines than others. It turned out that
on a machine with that setting set to 65530, some `ENOMEM` errors
would occur with `mmap` & `mprotect` during that specific test.

Reducing the number of times we fork, and the maximum size allocated
during that test makes it pass on those machines.

Differential Revision: https://reviews.llvm.org/D111342




More information about the All-commits mailing list