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

Unified Diff: base/mac/scoped_mach_vm.cc

Issue 278923002: Use the new ScopedMachVM class and the MACH_LOG family of logging macros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase onto r269793 Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/mac/scoped_mach_vm.h ('k') | base/memory/discardable_memory_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/scoped_mach_vm.cc
diff --git a/base/mac/scoped_mach_vm.cc b/base/mac/scoped_mach_vm.cc
index a9055aac72bed943c41da306c983f72e1a17fa8c..1c28d9c7c42e89fb1d49eb75b50fecb7173203b1 100644
--- a/base/mac/scoped_mach_vm.cc
+++ b/base/mac/scoped_mach_vm.cc
@@ -7,21 +7,21 @@
namespace base {
namespace mac {
-void ScopedMachVM::reset(mach_vm_address_t address, mach_vm_size_t size) {
+void ScopedMachVM::reset(vm_address_t address, vm_size_t size) {
DCHECK(address % PAGE_SIZE == 0);
DCHECK(size % PAGE_SIZE == 0);
if (size_) {
if (address_ < address) {
- mach_vm_deallocate(mach_task_self(),
- address_,
- std::min(size_, address - address_));
+ vm_deallocate(mach_task_self(),
+ address_,
+ std::min(size_, address - address_));
}
if (address_ + size_ > address + size) {
- mach_vm_address_t deallocate_start = std::max(address_, address + size);
- mach_vm_deallocate(mach_task_self(),
- deallocate_start,
- address_ + size_ - deallocate_start);
+ vm_address_t deallocate_start = std::max(address_, address + size);
+ vm_deallocate(mach_task_self(),
+ deallocate_start,
+ address_ + size_ - deallocate_start);
}
}
« no previous file with comments | « base/mac/scoped_mach_vm.h ('k') | base/memory/discardable_memory_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698