[Lldb-commits] [lldb] r178962 - Cache the VM page size that we get from task_vm_info so we don't

Jason Molenda jmolenda at apple.com
Sat Apr 6 13:30:59 PDT 2013


Author: jmolenda
Date: Sat Apr  6 15:30:59 2013
New Revision: 178962

URL: http://llvm.org/viewvc/llvm-project?rev=178962&view=rev
Log:
Cache the VM page size that we get from task_vm_info so we don't
re-fetch the value.

Modified:
    lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp

Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp?rev=178962&r1=178961&r2=178962&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp Sat Apr  6 15:30:59 2013
@@ -43,7 +43,8 @@ MachVMMemory::PageSize(task_t task)
             if (kr == KERN_SUCCESS)
             {
                 DNBLogThreadedIf(LOG_TASK, "MachVMMemory::PageSize task_info returned page size of 0x%x", (int) vm_info.page_size);
-                return vm_info.page_size;
+                m_page_size = vm_info.page_size;
+                return m_page_size;
             }
             else
             {





More information about the lldb-commits mailing list