Re:Lilith: x86-64 OS written in Crystal
by z92 on Monday December 23, 2019 @09:06AM
(#21863638)
When does GC kick in during the boot sequence? And how are you managing memory? Is the whole OS mark and sweeped?
[ Parent
| on HN ]
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.