Disparallel
u/Disparallel
I'm trying to implement garbage collection for my language which compiles to LLVM and am very lost on how the pieces fit together.
LLVM seems to recommend using the new statepoint system instead of the old gcroot intrinsic, but I can only find a few pages on how to use it (1, 2, 3).
My understanding is that statepoints allow a function to muck around with memory, e.g. collection which compacts the heap, then calling gc.relocate gets the new location. LLVM also builds a stackmap which can be walked to (and I assume modified?) which is what the gc uses to do col
If you're one of the people who have been running your assignment programs at 100% CPU for 10+ days on the student cs servers, you should probably kill your programs after you run them. Shame!
Also you should fix your networking assignment so it's not busy-waiting else you won't get very good marks.
You've reached the end of this feed.