Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
pjmlp
11y ago
0 comments
Share
This does not work if the GC updates the pointer concurrently.
0 comments
default
newest
oldest
crawshaw
11y ago
The GC will not update a pointer once it is converted to the type uintptr. It becomes invisible to the precise collector, so the uintptr acts as an id value.
pjmlp
OP
11y ago
Worse, it might be collected then as the collector might think it is no longer in use.
ianlancetaylor
11y ago
But it's in the map, so it's in use.
1 more reply
j
/
k
navigate · click thread line to collapse