Squat progress report

Dan Ingalls Dan at SqueakLand.org
Thu Mar 6 06:18:21 UTC 2003


Stephane Ducasse <ducasse at iam.unibe.ch>  asked...

>I'm curious to know the technique you used for discoverActiveClasses or what is the main idea.

Hi, Stef -

I'm not sure what you are asking for --  "the main idea" was in the original message beginning with "It does this by..." below.  Were you asking for a deeper explanation of method dictionary faults?

If you are wondering what it was used for, I used it to discover partitions in the system that made reasonable swapping units for outloading to disk as ImageSegments in order to handle huge images in less-than-huge computers.

	- Dan

>> It does this by nilling out the method dictionaries of almost all the classes (as the comment says, "gag me with a spoon" ;-), and then restoring any that cause faults.  When you're done, obviously, the ones that haven't been restored have not been touched, and can be thrown away.  If you throw out all these "inactive" classes, then removeUnsentMessages typically is able to get rid of lots more methods.



More information about the Squeak-dev mailing list