[PATCH] D61214: [scudo][standalone] Add the memory reclaiming mechanism

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 15:14:44 PDT 2019


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

This CL implements the memory reclaiming function `releaseFreeMemoryToOS`
and its associated classes. Most of this code was originally written by
Aleksey for the Primary64 in sanitizer_common, and I made some changes to
be able to implement 32-bit reclaiming as well. The code has be restructured
a bit to accomodate for freelist of batches instead of the freearray used
in the current sanitizer_common code.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D61214

Files:
  lib/scudo/standalone/CMakeLists.txt
  lib/scudo/standalone/release.h
  lib/scudo/standalone/size_class_map.h
  lib/scudo/standalone/tests/CMakeLists.txt
  lib/scudo/standalone/tests/map_test.cc
  lib/scudo/standalone/tests/release_test.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61214.196918.patch
Type: text/x-patch
Size: 20745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190426/1f3ff01f/attachment.bin>


More information about the llvm-commits mailing list