KKostya Kortchinsky[scudo] Get rid of initLinkerInitialized
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[scudo] [GWP-ASan] Add GWP-ASan variant of scudo benchmarks. GWP-ASan is the "production" variant as compiled by compiler-rt, and it's useful to be able to benchmark changes in GWP-ASan or Scudo's GWP-ASan hooks across versions. GWP-ASan is sampled, and sampled allocations are much slower, but given the amount of allocations that happen under test here - we actually get a reasonable representation of GWP-ASan's negligent performance impact between runs. Reviewed By: cryptoad Differential Revision: https://reviews.llvm.org/D101865 | 5 年前 | |
[scudo] Get rid of initLinkerInitialized Now that everything is forcibly linker initialized, it feels like a good time to get rid of the init/initLinkerInitialized split. This allows to get rid of various memset construct in init that gcc complains about (this fixes a Fuchsia open issue). I added various DCHECKs to ensure that we would get a zero-inited object when entering init, which required ensuring that unmapTestOnly leaves the object in a good state (tests are currently the only location where an allocator can be "de-initialized"). Running the tests with --gtest_repeat= showed no issue. Differential Revision: https://reviews.llvm.org/D103119 | 5 年前 |