WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 42349326

(no title)

njtransit | 1 year ago

The article doesn’t actually explain how they work… How does the indirect pointer get set to nil? Does it use runtime.SetFinalizer?

discuss

order

usrnm|1 year ago

https://cs.opensource.google/go/go/+/refs/tags/go1.23.4:src/...

https://cs.opensource.google/go/go/+/master:src/runtime/mhea...

Looks like most of it is implemented directly in the runtime.

powered by hn/api // news.ycombinator.com