I looked at the source but can't understand it well enough.

If I allocate a [1000]byte, or a []byte, I understand the GC will need to 
mark the slice/array itself for collection. However, does the GC mark all 
the bytes within, and does the marking phase attempt to follow all the 
items?

Will the GC pause longer if I allocate a large array?

Additionally, if the array type is actually [10000]struct{*int}, then 
surely it must follow the array as those pointers may be the only 
references to some data somewhere. Does the GC know not to follow types 
that contain no references?

Thanks for any advice in this area.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to