This is an archive of the discontinued LLVM Phabricator instance.

scudo: Add way to set release interval for both allocators.
AbandonedPublic

Authored by cferris on Feb 7 2020, 9:37 AM.

Details

Reviewers
None
Summary

For Android, set the defaults so that the primary is 1 second, but
the secondary is set to always release.

Add the ability to set these release intervals in mallopt.

Event Timeline

cferris created this revision.Feb 7 2020, 9:37 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 7 2020, 9:37 AM
Herald added subscribers: llvm-commits, Restricted Project, jfb, cryptoad. · View Herald Transcript
cferris updated this revision to Diff 243199.Feb 7 2020, 9:38 AM

Updated mallopt for android.

Harbormaster completed remote builds in B45951: Diff 243199.
cferris updated this revision to Diff 243207.Feb 7 2020, 9:55 AM

Removed the minimum flags and create and Android specific mallopt setting.

The idea sounds good, but as discussed by mail I'd like to avoid breaking the old option.
As pcc@ suggested, it might be time to move the release interval into the allocator config rather than have them be flags, since now there is a way to influence them via mallopt.

cferris abandoned this revision.Feb 11 2020, 3:05 PM

Changed this enough, so I'm abandoning this.