Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here is an excerpt from the recent proposal on non-cooperative goroutine preemption [1], relevant to our discussion on GC and interior pointers:

> Many other garbage-collected languages use explicit safe-points on back-edges, or they use forward-simulation to reach a safe-point. Partly, it's possible for Go to support safe-points everywhere because Go's GC already must have excellent support for interior pointers; in many languages, interior pointers never appear at a safe-point. > [...] > Decoupling stack-move points from GC safe-points. [...] Such optimizations are possible because of Go's non-moving collector.

[1] https://github.com/golang/proposal/blob/master/design/24543-...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: