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

Side by Side Diff: base/process_util_linux.cc

Issue 6524008: Changes necessary to build Chromium with ThreadSanitizer LLVM instrumentation... Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/compiler_specific.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/process_util.h" 5 #include "base/process_util.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 #include <dirent.h> 8 #include <dirent.h>
9 #include <dlfcn.h> 9 #include <dlfcn.h>
10 #include <errno.h> 10 #include <errno.h>
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 LOG(FATAL) << "Out of memory."; 603 LOG(FATAL) << "Out of memory.";
604 } 604 }
605 605
606 void OnNoMemory() { 606 void OnNoMemory() {
607 OnNoMemorySize(0); 607 OnNoMemorySize(0);
608 } 608 }
609 609
610 } // namespace 610 } // namespace
611 611
612 extern "C" { 612 extern "C" {
613 #if !defined(USE_TCMALLOC) 613 #if 0
614 614
615 extern "C" { 615 extern "C" {
616 void* __libc_malloc(size_t size); 616 void* __libc_malloc(size_t size);
617 void* __libc_realloc(void* ptr, size_t size); 617 void* __libc_realloc(void* ptr, size_t size);
618 void* __libc_calloc(size_t nmemb, size_t size); 618 void* __libc_calloc(size_t nmemb, size_t size);
619 void* __libc_valloc(size_t size); 619 void* __libc_valloc(size_t size);
620 void* __libc_pvalloc(size_t size); 620 void* __libc_pvalloc(size_t size);
621 void* __libc_memalign(size_t alignment, size_t size); 621 void* __libc_memalign(size_t alignment, size_t size);
622 } // extern "C" 622 } // extern "C"
623 623
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 706
707 if (!file_util::PathExists(oom_adj)) 707 if (!file_util::PathExists(oom_adj))
708 return false; 708 return false;
709 709
710 std::string score_str = base::IntToString(score); 710 std::string score_str = base::IntToString(score);
711 return (static_cast<int>(score_str.length()) == 711 return (static_cast<int>(score_str.length()) ==
712 file_util::WriteFile(oom_adj, score_str.c_str(), score_str.length())); 712 file_util::WriteFile(oom_adj, score_str.c_str(), score_str.length()));
713 } 713 }
714 714
715 } // namespace base 715 } // namespace base
OLDNEW
« no previous file with comments | « base/compiler_specific.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698