diff options
author | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-30 10:54:38 +0000 |
---|---|---|
committer | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-30 10:54:38 +0000 |
commit | 6b7e9b2dcf8f11f009c9e30fd28819dbd93ad000 (patch) | |
tree | d69ce3302d5be1b70d10cd6797abfec0e550166c /base/base.gypi | |
parent | 15d986badba741679d157658c0b6f2130095f35c (diff) | |
download | chromium_src-6b7e9b2dcf8f11f009c9e30fd28819dbd93ad000.zip chromium_src-6b7e9b2dcf8f11f009c9e30fd28819dbd93ad000.tar.gz chromium_src-6b7e9b2dcf8f11f009c9e30fd28819dbd93ad000.tar.bz2 |
Use DiscardableMemoryManager on Android.
This allows userspace (DiscardableMemoryManager) to control eviction of
unlocked DiscardableMemory instances to prevent the process from running out of
address space in cases of heavy use of unlocked DiscardableMemory.
This also removes all the occurences of 'Android' from the ashmem allocator to
allow it to be later used on ChromeOS.
BUG=327516, 334996
R=reveman@chromium.org, willchan@chromium.org
Review URL: https://codereview.chromium.org/195863005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267170 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base.gypi')
-rw-r--r-- | base/base.gypi | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/base/base.gypi b/base/base.gypi index 09a3afa..1767014 100644 --- a/base/base.gypi +++ b/base/base.gypi @@ -304,8 +304,6 @@ 'memory/aligned_memory.h', 'memory/discardable_memory.cc', 'memory/discardable_memory.h', - 'memory/discardable_memory_allocator_android.cc', - 'memory/discardable_memory_allocator_android.h', 'memory/discardable_memory_android.cc', 'memory/discardable_memory_emulated.cc', 'memory/discardable_memory_emulated.h', @@ -770,6 +768,14 @@ ['include', '^threading/platform_thread_linux\\.cc$'], ], }], + ['OS == "android" and _toolset == "target"', { + 'sources': [ + 'memory/discardable_memory_ashmem_allocator.cc', + 'memory/discardable_memory_ashmem_allocator.h', + 'memory/discardable_memory_ashmem.cc', + 'memory/discardable_memory_ashmem.h', + ], + }], ['OS == "android" and >(nacl_untrusted_build)==0', { 'sources!': [ 'base_paths_posix.cc', |