Open ffwff opened 4 years ago
Is this for the main Crystal Lang or for Lilith specifically?
Both? The compiler will be patched to output additional garbage collector data which can then be used by the new GC. The new GC will hopefully be more portable so it can be reused in userspace's libcrystal
That is awesome I cannot wait to see what you end up doing :)
What's the status of this feature, and where can it be found? I'm curious about the possibility of merging your GC into the stdlib
@dscottboggs It's pretty complete on the OS so far, I haven't had crashes. I tried porting it to crystal proper, but I couldn't get it working (I think this is because the actual stdlib uses much more complex data structures than mine does).
But feel free to port it I guess, all of it lies under the src/alloc
directory.
The current incremental garbage collector/memory allocator is great and all but leaves a lot to be desired. I'm thinking of rewriting a new one.
GC
the stack/data segments in order to get the root objectsIdeas
a linked-list-based stack? (the current gc does this)Memory allocator