Open
Description
Mono does not round up the argument to pthread_attr_setstacksize
to the platform virtual page size which results in an EINVAL which will cause new Thread(ThreadStart, Int32)
to fail
The osx-x64 Debug Mono_MiniJIT_LibrariesTests leg crashed with:
mono_thread_platform_create_thread: pthread_attr_setstacksize failed, error: "Invalid argument" (22)
when trying to set a maxStackSize on a new thread to 100_000.