Skip to content
Opensource internals
  • Posts

Weak pointers

Weak Pointers in Go: The Runtime's Special Span for Non-Tracked Objects

Oct 21, 2026 16 min read Jay Hubbert

weak.Pointer is backed by a per-object special record holding a uintptr handle, which the GC scans as a root but never treats as a strong reference, so the target can still be …

GoInternalsGarbage collectionWeak pointersRuntime

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·