#Understanding pointer fields in structs
8 messages · Page 1 of 1 (latest)
once those OTP objects themselves are collected, then the pointed-to objects become available to collect (if no other pointers to them remain)
Thanks for answer, lets say i have a global map of otps, and there is going to be atleast one otp in that map, are saying all those otps that i removed from map will stay there for ever?
i mean their pointers
if no pointers to an object remain, it can be collected
i'm not following precisely what you mean by "their pointers"
pointers to them, or pointers that they contain?
lets say i have a map of with 100 OTP objects and all of their pointers have values, now when i delete 50 of those otp objects, what happens to deleted objects pointers and values?