3 ms·
Slide #9 mentions they use the unsafe package in the GC to deal with pointers as raw bits.
by Zikes 11y ago
Slide #9 mentions they use the unsafe package in the GC to deal with pointers as raw bits.
- haberman 11y agoBut does the GC run on the GC's own runtime data? Can the GC be interrupted by itself if it takes too long or uses too much memory? It seems like there are several things about the GC that would need to be special-cased, since the GC is implicitly invoked by the runtime.
- kinghajj 11y agoI would assume not. GCs are typically invoked by requesting allocation. Since the GC (presumably) uses lower-level OS facilities to allocate memory, it wouldn't need to recursively invoke itself.