Re: Object unloading confusion

2020-04-16 Thread Simon Marlow
Hi Omer The point of the heap scan is to find *info pointers* into objects that we want to unload, since we can't unload those. What about static object pointers? Well, those would be found by traversing the static_objects list, which we also do in checkUnload. Except that static_objects doesn't

Re: Object unloading confusion

2020-04-15 Thread Ömer Sinan Ağacan
To answer my own question > So if I see a constructor with a reference to an object code in its payload > I'll not mark the object code. We don't visit payload as objects pointed from the payload will be visited during the scan later (or they're already visited if they come before the constructor