Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: improper preempt points inserting in runtimeNano #22938
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Marking these nosplit would not help with their accuracy. For one, nothing's stopping the OS from preempting the process at any point, which could potentially throw off any measurements no matter what we do. Also, these functions aren't exposed to user code, and anything that does expose their results to user space (like
But this is so dependent on the details of the compiler, linker, and runtime that I really don't want to expose any of this (e.g., if the above code used
Finally, there's the fact that we want to have a lot more preemption points, not fewer, to solve #10958.