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

Side by Side Diff: third_party/tcmalloc/chromium/src/windows/port.cc

Issue 27017003: Fixes for tcmalloc for VS2013 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/tcmalloc/chromium/src/windows/port.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) 2007, Google Inc. 1 /* Copyright (c) 2007, Google Inc.
2 * All rights reserved. 2 * All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 #ifndef _WIN32 34 #ifndef _WIN32
35 # error You should only be including windows/port.cc in a windows environment! 35 # error You should only be including windows/port.cc in a windows environment!
36 #endif 36 #endif
37 37
38 #define NOMINMAX // so std::max, below, compiles correctly 38 #define NOMINMAX // so std::max, below, compiles correctly
39 #include <config.h> 39 #include <config.h>
40 #include <string.h> // for strlen(), memset(), memcmp() 40 #include <string.h> // for strlen(), memset(), memcmp()
41 #include <assert.h> 41 #include <assert.h>
42 #include <stdarg.h> // for va_list, va_start, va_end 42 #include <stdarg.h> // for va_list, va_start, va_end
43 #include <windows.h> 43 #include <windows.h>
44 #include <algorithm>
44 #include "port.h" 45 #include "port.h"
45 #include "base/logging.h" 46 #include "base/logging.h"
46 #include "base/spinlock.h" 47 #include "base/spinlock.h"
47 #include "internal_logging.h" 48 #include "internal_logging.h"
48 #include "system-alloc.h" 49 #include "system-alloc.h"
49 50
50 // ----------------------------------------------------------------------- 51 // -----------------------------------------------------------------------
51 // Basic libraries 52 // Basic libraries
52 53
53 int getpagesize() { 54 int getpagesize() {
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 if ((strlen(fname) >= prefix_length) && 354 if ((strlen(fname) >= prefix_length) &&
354 (memcmp(fname, prefix, prefix_length) == 0)) { 355 (memcmp(fname, prefix, prefix_length) == 0)) {
355 RAW_VLOG(0, "Removing old heap profile %s\n", fname); 356 RAW_VLOG(0, "Removing old heap profile %s\n", fname);
356 // TODO(csilvers): we really need to unlink dirname + fname 357 // TODO(csilvers): we really need to unlink dirname + fname
357 _unlink(fname); 358 _unlink(fname);
358 } 359 }
359 } while (FindNextFileA(hFind, &found) != FALSE); // A is for Ansi 360 } while (FindNextFileA(hFind, &found) != FALSE); // A is for Ansi
360 FindClose(hFind); 361 FindClose(hFind);
361 } 362 }
362 } 363 }
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/windows/port.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698