|
Re-land: base: Implement browser process support for discardable memory.
This implements support for in-process discardable
memory. Each in-process discardable memory instance is
associated with a discardable shared memory segment. This
is hopefully efficient enough with the limited use of
discardable memory in the browser process.
DiscardableSharedMemoryHeap can be used if this is not
enough.
This also moves the test implementation of the discardable
memory allocator into a TestDiscardableMemoryShmemAllocator
class and requires tests that use discardable memory to
explicitly use this test allocator. Browser tests uses the
real discardable memory allocator.
BUG= 422953, 463250
Committed: https://crrev.com/2799f7fb3d3a2406b1608f0b9bc470ff76ad4ea0
Cr-Commit-Position: refs/heads/master@{#320764}
Total comments: 4
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+220 lines, -164 lines) |
Patch |
 |
M |
ash/test/test_suite.h
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/test/test_suite.cc
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/BUILD.gn
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
base/base.gyp
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_shmem_allocator.cc
|
View
|
|
2 chunks |
+1 line, -42 lines |
0 comments
|
Download
|
 |
D |
base/memory/discardable_memory_unittest.cc
|
View
|
1
|
1 chunk |
+0 lines, -64 lines |
0 comments
|
Download
|
 |
M |
base/test/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/test/test_discardable_memory_shmem_allocator.h
|
View
|
1
2
3
4
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/test/test_discardable_memory_shmem_allocator.cc
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/chrome_unit_test_suite.h
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/chrome_unit_test_suite.cc
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_main_loop.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/host_discardable_shared_memory_manager.h
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/host_discardable_shared_memory_manager.cc
|
View
|
1
2
3
|
8 chunks |
+105 lines, -54 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_thread_impl.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/test/blink_test_environment.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/test/run_all_unittests.cc
|
View
|
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/message_center/test/run_all_unittests.cc
|
View
|
1
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 26 (7 generated)
|