Ticket #50686: _psutil_osx.c.diff

File _psutil_osx.c.diff, 811 bytes (added by josephsacco, 8 years ago)

_psutl_osx.c.diff

  • psutil/_psutil_osx.

    old new  
    600600
    601601    // Roughly based on libtop_update_vm_regions in
    602602    // http://www.opensource.apple.com/source/top/top-100.1.2/libtop.c
    603     for (mach_vm_address_t addr = MACH_VM_MIN_ADDRESS; ; addr += size) {
     603    mach_vm_address_t addr;
     604    for (addr = MACH_VM_MIN_ADDRESS; ; addr += size) {
    604605        vm_region_top_info_data_t info;
    605606        mach_port_t object_name;
    606607
     
    621622        }
    622623
    623624        switch (info.share_mode) {
    624             case SM_LARGE_PAGE:
     625            //case SM_LARGE_PAGE:
    625626                // NB: Large pages are not shareable and always resident.
    626627            case SM_PRIVATE:
    627628                private_pages += info.private_pages_resident;