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

Side by Side Diff: src/platform-linux.cc

Issue 200055: Add MAP_FIXED to Uncommit calls to see if that has an effect on GMail... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 3 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 | « src/platform-freebsd.cc ('k') | src/platform-macos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 return false; 355 return false;
356 } 356 }
357 357
358 UpdateAllocatedSpaceLimits(address, size); 358 UpdateAllocatedSpaceLimits(address, size);
359 return true; 359 return true;
360 } 360 }
361 361
362 362
363 bool VirtualMemory::Uncommit(void* address, size_t size) { 363 bool VirtualMemory::Uncommit(void* address, size_t size) {
364 return mmap(address, size, PROT_NONE, 364 return mmap(address, size, PROT_NONE,
365 MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, 365 MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE | MAP_FIXED,
366 kMmapFd, kMmapFdOffset) != MAP_FAILED; 366 kMmapFd, kMmapFdOffset) != MAP_FAILED;
367 } 367 }
368 368
369 369
370 class ThreadHandle::PlatformData : public Malloced { 370 class ThreadHandle::PlatformData : public Malloced {
371 public: 371 public:
372 explicit PlatformData(ThreadHandle::Kind kind) { 372 explicit PlatformData(ThreadHandle::Kind kind) {
373 Initialize(kind); 373 Initialize(kind);
374 } 374 }
375 375
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 740
741 // This sampler is no longer the active sampler. 741 // This sampler is no longer the active sampler.
742 active_sampler_ = NULL; 742 active_sampler_ = NULL;
743 active_ = false; 743 active_ = false;
744 } 744 }
745 745
746 746
747 #endif // ENABLE_LOGGING_AND_PROFILING 747 #endif // ENABLE_LOGGING_AND_PROFILING
748 748
749 } } // namespace v8::internal 749 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-freebsd.cc ('k') | src/platform-macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698