OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |