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

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

Issue 2299753002: Made zone segments aligned in memory and included a pointer to the zone in the header. Larger objec…
Patch Set: Added a zone segment pool for small segments to avoid frequent sys calls Created 4 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
« no previous file with comments | « src/base/platform/platform-openbsd.cc ('k') | src/base/platform/platform-solaris.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 QNX goes here. For the POSIX-compatible 5 // Platform-specific code for QNX goes here. For the POSIX-compatible
6 // parts the implementation is in platform-posix.cc. 6 // parts the implementation is in platform-posix.cc.
7 7
8 #include <backtrace.h> 8 #include <backtrace.h>
9 #include <pthread.h> 9 #include <pthread.h>
10 #include <semaphore.h> 10 #include <semaphore.h>
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 232
233 VirtualMemory::~VirtualMemory() { 233 VirtualMemory::~VirtualMemory() {
234 if (IsReserved()) { 234 if (IsReserved()) {
235 bool result = ReleaseRegion(address(), size()); 235 bool result = ReleaseRegion(address(), size());
236 DCHECK(result); 236 DCHECK(result);
237 USE(result); 237 USE(result);
238 } 238 }
239 } 239 }
240 240
241 241 bool VirtualMemory::IsReserved() const { return address_ != NULL; }
242 bool VirtualMemory::IsReserved() {
243 return address_ != NULL;
244 }
245
246 242
247 void VirtualMemory::Reset() { 243 void VirtualMemory::Reset() {
248 address_ = NULL; 244 address_ = NULL;
249 size_ = 0; 245 size_ = 0;
250 } 246 }
251 247
252 248
253 bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) { 249 bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) {
254 return CommitRegion(address, size, is_executable); 250 return CommitRegion(address, size, is_executable);
255 } 251 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 return munmap(base, size) == 0; 305 return munmap(base, size) == 0;
310 } 306 }
311 307
312 308
313 bool VirtualMemory::HasLazyCommits() { 309 bool VirtualMemory::HasLazyCommits() {
314 return false; 310 return false;
315 } 311 }
316 312
317 } // namespace base 313 } // namespace base
318 } // namespace v8 314 } // namespace v8
OLDNEW
« no previous file with comments | « src/base/platform/platform-openbsd.cc ('k') | src/base/platform/platform-solaris.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698