[PATCH] D63146: [scudo][standalone] Unmap memory in tests

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 11 09:33:50 PDT 2019


cryptoad created this revision.
cryptoad added reviewers: morehouse, vitalybuka, eugenis, hctim.
Herald added subscribers: Sanitizers, jfb, delcypher.
Herald added projects: LLVM, Sanitizers.

The more tests are added, the more we are limited by the size of the
address space on 32-bit. Implement `unmapTestOnly` all around (like it
is in sanitzer_common) to be able to free up some memory.
This is not intended to be a proper "destructor" for an allocator, but
allows us to not fail due to having no memory left.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D63146

Files:
  lib/scudo/standalone/bytemap.h
  lib/scudo/standalone/primary32.h
  lib/scudo/standalone/primary64.h
  lib/scudo/standalone/tests/bytemap_test.cc
  lib/scudo/standalone/tests/primary_test.cc
  lib/scudo/standalone/tests/tsd_test.cc
  lib/scudo/standalone/tsd_exclusive.h
  lib/scudo/standalone/tsd_shared.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63146.204088.patch
Type: text/x-patch
Size: 8569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190611/11d912be/attachment.bin>


More information about the llvm-commits mailing list