3 ms·
GC in osdev has quite a large number of problems, performance being one of them, the other being that some resources simply can#t be handled cleanly by a langua
by zaarn 7y ago
GC in osdev has quite a large number of problems, performance being one of them, the other being that some resources simply can#t be handled cleanly by a language that can't opt out of a GC.
You somewhat need the option to atleast manage some memory very very manually. And of course, the GC needs to work without allocating memory (ie, true in-place GC) otherwise you're going to blow of your kneecaps of fairly spectacularly (this goes double when you need to initialize memory management, which can't rely on a memory allocator being present or free memory being available)
- pjmlp 7y agoYet it has been achieved multiple times. The only thing missing is having companies like Apple and Google are doing with their mobile OSes, "my way or nothing". Usually those that have enjoyed GC aware OSes know what they were capable of, and those that never have, think they know how bad they were.