Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: base/BUILD.gn

Issue 2518253002: Move Partition Allocator into Chromium base. (Closed)
Patch Set: Respond to more of Primiano's comments; move PartitionAllocator.* back to wtf; some build fixes Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/allocator/OWNERS » ('j') | base/compiler_specific.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/BUILD.gn
diff --git a/base/BUILD.gn b/base/BUILD.gn
index bbdf07372b1f6b7cec573965e752c60f019376d7..5b946345d1823a7a6c8973cf850747fc496d1c56 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -1220,6 +1220,17 @@ component("base") {
"rand_util_nacl.cc",
"synchronization/read_write_lock_nacl.cc",
]
+
+ # Add stuff that doesn't work in NaCl.
+ sources += [
gab 2016/12/05 18:51:48 Add these to all sources and instead add the excep
palmer 2016/12/06 00:58:25 In an earlier code review, thakis said the general
gab 2016/12/06 15:43:21 Interesting, I'll discuss with him offline. I thou
gab 2016/12/06 15:55:06 Spoke with Nico, preference is now sources += in G
+ # PartitionAlloc uses SpinLock, which doesn't work in NaCl (see below).
+ "allocator/partition_allocator/address_space_randomization.cc",
+ "allocator/partition_allocator/address_space_randomization.h",
+ "allocator/partition_allocator/page_allocator.cc",
+ "allocator/partition_allocator/page_allocator.h",
+ "allocator/partition_allocator/partition_alloc.cc",
+ "allocator/partition_allocator/partition_alloc.h",
+ ]
}
# SpinLock uses inline assembly that doesn't work on NaCl, and for which there
@@ -1785,6 +1796,7 @@ if (is_ios || is_mac) {
test("base_unittests") {
sources = [
+ "allocator/partition_allocator/partition_alloc_unittest.cc",
"allocator/tcmalloc_unittest.cc",
"android/application_status_listener_unittest.cc",
"android/content_uri_utils_unittest.cc",
« no previous file with comments | « no previous file | base/allocator/OWNERS » ('j') | base/compiler_specific.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698