Hacker News new | ask | show | jobs
by pjmlp 4302 days ago
This remark is what triggered my comment

> It becomes invisible to the precise collector

So does the conversion to uintptr remove it from the root lists the GC searches?

1 comments

It's a map[uintptr]unsafe.Pointer. The key is invisible to the collector, but the value is an unsafe.Pointer, which is will be managed for you by the precise collector.
Ah, stupid me! Thanks for clarifying it.