This is an archive of the discontinued LLVM Phabricator instance.

[scudo][standalone] Release secondary memory on purge
ClosedPublic

Authored by cryptoad on Jan 30 2020, 11:07 AM.

Details

Summary

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.

Diff Detail

Event Timeline

cryptoad created this revision.Jan 30 2020, 11:07 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 30 2020, 11:08 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
cryptoad edited the summary of this revision. (Show Details)Jan 30 2020, 11:09 AM

Unit tests: fail. 62352 tests passed, 1 failed and 839 were skipped.

failed: libc++.std/containers/sequences/array/array_creation/to_array.fail.cpp

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

pcc accepted this revision.Jan 30 2020, 12:02 PM

LGTM

This revision is now accepted and ready to land.Jan 30 2020, 12:02 PM
This revision was automatically updated to reflect the committed changes.