#Is the backing array used in calls to `unsafe.Slice()` always ignored by the GC?
6 messages · Page 1 of 1 (latest)
GC does not care about type, type system only exists in your code or things works with interface, GC only care about the addresses
yes you are right
Go runtime knows which address did it alloced, if it detected any address not under its control, it will just ignore them
if you problem is solved, please type /solved in chat, thanks!
@drowsy plume I have to clearify with this, GC will care about types, when checking pointers from array/slice, but just remind the GC will not check the Go pointers you saved in C array