I just read the docs about GC, if I understand it correctly, in a c program, all static variables, global variable, and local variables that hold SCM objects are registered to GC protection automatically.
I want to know how does the GC make this, could anyone give me a clue? Many thanks.