Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit f284ff9

Browse files
authored
Merge pull request #9214 from mono/catalina-crasher
[Mac] Fix binding for task_info
2 parents bd39ec3 + 3e1e14b commit f284ff9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/src/addins/MacPlatform/KernelInterop.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ static bool TryGetTaskVMInfo (out task_vm_info vm_info)
7676
vm_info = new task_vm_info ();
7777
int size;
7878
unsafe {
79-
size = sizeof (task_vm_info);
79+
// task_vm_info's size in natural_t units
80+
size = sizeof (task_vm_info) / 4;
8081
}
8182

8283
int ret = task_info (mach_task_self (), TASK_VM_INFO, ref vm_info, ref size);

0 commit comments

Comments
 (0)