4 ms·
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.
by crawshaw 12y 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 12y agoWorse, it might be collected then as the collector might think it is no longer in use.
- ianlancetaylor 12y agoBut it's in the map, so it's in use.
- pjmlp 12y agoThis 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?