[PATCH] D73730: [scudo][standalone] Release secondary memory on purge

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 11:14:41 PST 2020


cryptoad created this revision.
cryptoad added reviewers: cferris, hctim, pcc, eugenis.
Herald added projects: Sanitizers, LLVM.
Herald added a subscriber: Sanitizers.
cryptoad edited the summary of this revision.

The Secondary's cache needs to be released when the Combined's
`releaseToOS` function is called (via `M_PURGE` for example),
which this CL adds.

Additionally, if doing a forced release, we'll release the
transfer batch class as well since now we can do that.

There is a couple of other house keeping changes as well:

- read the page size only once in the Secondary Cache `retrieve`
- remove the interval check for `CanRelease`: we are going to make that configurable via `mallopt` so this needs not be set in stone there.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73730

Files:
  compiler-rt/lib/scudo/standalone/combined.h
  compiler-rt/lib/scudo/standalone/primary32.h
  compiler-rt/lib/scudo/standalone/primary64.h
  compiler-rt/lib/scudo/standalone/secondary.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73730.241520.patch
Type: text/x-patch
Size: 3976 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200130/1747ad9c/attachment.bin>


More information about the llvm-commits mailing list