How can a garbage collector find out about object references done from the stack? How can a garbage collector find out about object references done from the stack? go go

How can a garbage collector find out about object references done from the stack?