const char kalloc_str[] = "kalloc.";
kr = mach_memory_info(mach_host_self(),
const char kalloc_str[] = "kalloc.";
kr = mach_memory_info(mach_host_self(),
- &name, &nameCnt, &info, &infoCnt,
- &wiredInfo, &wiredInfoCnt);
+ &name, &nameCnt, &info, &infoCnt,
+ &wiredInfo, &wiredInfoCnt);
T_QUIET; T_ASSERT_MACH_SUCCESS(kr, "mach_memory_info");
T_QUIET; T_ASSERT_EQ(nameCnt, infoCnt, "zone name and info counts don't match");
T_QUIET; T_ASSERT_MACH_SUCCESS(kr, "mach_memory_info");
T_QUIET; T_ASSERT_EQ(nameCnt, infoCnt, "zone name and info counts don't match");
if ((name != NULL) && (nameCnt != 0)) {
kr = vm_deallocate(mach_task_self(), (vm_address_t) name,
if ((name != NULL) && (nameCnt != 0)) {
kr = vm_deallocate(mach_task_self(), (vm_address_t) name,
T_QUIET; T_ASSERT_MACH_SUCCESS(kr, "vm_deallocate name");
}
if ((info != NULL) && (infoCnt != 0)) {
kr = vm_deallocate(mach_task_self(), (vm_address_t) info,
T_QUIET; T_ASSERT_MACH_SUCCESS(kr, "vm_deallocate name");
}
if ((info != NULL) && (infoCnt != 0)) {
kr = vm_deallocate(mach_task_self(), (vm_address_t) info,
T_QUIET; T_ASSERT_MACH_SUCCESS(kr, "vm_deallocate info");
}
if ((wiredInfo != NULL) && (wiredInfoCnt != 0)) {
kr = vm_deallocate(mach_task_self(), (vm_address_t) wiredInfo,
T_QUIET; T_ASSERT_MACH_SUCCESS(kr, "vm_deallocate info");
}
if ((wiredInfo != NULL) && (wiredInfoCnt != 0)) {
kr = vm_deallocate(mach_task_self(), (vm_address_t) wiredInfo,