diff options
| author | Colin Cross <ccross@android.com> | 2013-12-12 17:50:35 -0800 |
|---|---|---|
| committer | Colin Cross <ccross@android.com> | 2013-12-19 19:25:39 -0800 |
| commit | f3ae9a8286d63f13715d2082965d6b8849af05a5 (patch) | |
| tree | 27804ab966956f2c36f87660e057068bd1dc514d /lib/mpi/mpiutil.c | |
| parent | 892e1580141cde0f80180e43f6c8c3dc356ddaf2 (diff) | |
| download | olio-linux-3.10-f3ae9a8286d63f13715d2082965d6b8849af05a5.tar.xz olio-linux-3.10-f3ae9a8286d63f13715d2082965d6b8849af05a5.zip | |
ion: move shrinker out of heaps
Every heap that uses deferred frees is going to need a shrinker
to shrink the freelist under memory pressure. Rather than
requiring each heap to implement a shrinker, automatically
register a shrinker if the deferred free flag is set.
The system heap also needs to shrink its page pools, so add
a shrink function to the heap ops that will be called after
shrinking the freelists.
Change-Id: Icda722d683426fadb8ddd1c8e9499264ab682c57
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions