Re:Proposal: Non-cooperative goroutine preemption
by arghwhat on Thursday March 29, 2018 @09:54AM
(#16707042)
[Citation needed]
[ Parent
| on HN ]
Re:Proposal: Non-cooperative goroutine preemption
by jashmatthews on Thursday March 29, 2018 @10:35AM
(#16707370)
https://github.com/golang/go/issues/12061
"Mark termination does not have to rescan stacks that haven’t executed since the last scan"
With pre-emptive scheduling of OS threads, you potentially dirty a ton more stacks, and have to scan them all for pointers to heap memory. I'm not sure how VMs using lots of OS threads deal with this.