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

Unified Diff: Source/wtf/TCSystemAlloc.cpp

Issue 48663004: Fix more warnings in wtf (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix more warnings in wtf. Created 7 years, 2 months 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
Index: Source/wtf/TCSystemAlloc.cpp
diff --git a/Source/wtf/TCSystemAlloc.cpp b/Source/wtf/TCSystemAlloc.cpp
index c631fda1f5f2c0bf7b32726b3c239a30cee311e9..98ac89b81427e245f90095c795dae63f2c5ae134 100644
--- a/Source/wtf/TCSystemAlloc.cpp
+++ b/Source/wtf/TCSystemAlloc.cpp
@@ -79,9 +79,6 @@ static bool devmem_failure = false;
static bool sbrk_failure = false;
static bool mmap_failure = false;
-static const int32_t FLAGS_malloc_devmem_start = 0;
-static const int32_t FLAGS_malloc_devmem_limit = 0;
-
#if HAVE(MMAP)
static void* TryMmap(size_t size, size_t *actual_size, size_t alignment) {
@@ -184,11 +181,6 @@ void TCMalloc_SystemRelease(void* start, size_t length)
#else
const int advice = MADV_DONTNEED;
#endif
- if (FLAGS_malloc_devmem_start) {
- // It's not safe to use MADV_DONTNEED if we've been mapping
- // /dev/mem for heap memory
- return;
- }
if (pagesize == 0) pagesize = getpagesize();
const size_t pagemask = pagesize - 1;
« no previous file with comments | « Source/wtf/PartitionAlloc.cpp ('k') | Source/wtf/dtoa.cpp » ('j') | Source/wtf/dtoa.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698