Hacker News new | ask | show | jobs
by z92 2365 days ago
When does GC kick in during the boot sequence? And how are you managing memory? Is the whole OS mark and sweeped?
1 comments

Right after the global descriptor table is setup and paging is enabled, the GC is then enabled. On every allocation, and whenever the os has no task available to switch to, a gc cycle is performed.

Not really, the kernel and any process written in crystal has a garbage collector, any other userspace process can manage memory however they want to.