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

Side by Side Diff: src/base/platform/platform-aix.cc

Issue 2041233003: PPC/AIX: [heap] Uncommit unused large object page memory. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: minor fix Created 4 years, 6 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
« no previous file with comments | « no previous file | 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project 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 // Platform specific code for AIX goes here. For the POSIX comaptible parts 5 // Platform specific code for AIX goes here. For the POSIX comaptible parts
6 // the implementation is in platform-posix.cc. 6 // the implementation is in platform-posix.cc.
7 7
8 #include <pthread.h> 8 #include <pthread.h>
9 #include <semaphore.h> 9 #include <semaphore.h>
10 #include <signal.h> 10 #include <signal.h>
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 if (mprotect(base, size, prot) == -1) return false; 225 if (mprotect(base, size, prot) == -1) return false;
226 226
227 return true; 227 return true;
228 } 228 }
229 229
230 230
231 bool VirtualMemory::UncommitRegion(void* base, size_t size) { 231 bool VirtualMemory::UncommitRegion(void* base, size_t size) {
232 return mprotect(base, size, PROT_NONE) != -1; 232 return mprotect(base, size, PROT_NONE) != -1;
233 } 233 }
234 234
235 bool VirtualMemory::ReleasePartialRegion(void* base, size_t size,
236 void* free_start, size_t free_size) {
237 return munmap(free_start, free_size) == 0;
238 }
239
235 240
236 bool VirtualMemory::ReleaseRegion(void* base, size_t size) { 241 bool VirtualMemory::ReleaseRegion(void* base, size_t size) {
237 return munmap(base, size) == 0; 242 return munmap(base, size) == 0;
238 } 243 }
239 244
240 245
241 bool VirtualMemory::HasLazyCommits() { return true; } 246 bool VirtualMemory::HasLazyCommits() { return true; }
242 } // namespace base 247 } // namespace base
243 } // namespace v8 248 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698