Issue 3624 in pharo: LeftOver of Smalltalk and SystemDictionary

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 3624 in pharo: LeftOver of Smalltalk and SystemDictionary

pharo
Status: Accepted
Owner: [hidden email]
Labels: Milestone-1.3

New issue 3624 by [hidden email]: LeftOver of Smalltalk and  
SystemDictionary
http://code.google.com/p/pharo/issues/detail?id=3624

there are wrong messages sent to self environment.... here garbageCollect.




removeUninstantiatedSubclassesSilently
        "Remove the classes of any subclasses that have neither instances nor  
subclasses.  Answer the number of bytes reclaimed"
        "Player removeUninstantiatedSubclassesSilently"

        | candidatesForRemoval  oldFree |

        oldFree := self environment garbageCollect.
        candidatesForRemoval :=
                self subclasses select: [:c |
                        (c instanceCount = 0) and: [c subclasses size = 0]].
        candidatesForRemoval do: [:c | c removeFromSystem].
        ^ self environment garbageCollect - oldFree


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3624 in pharo: LeftOver of Smalltalk and SystemDictionary

pharo
Updates:
        Status: Fixed

Comment #1 on issue 3624 by [hidden email]: LeftOver of Smalltalk  
and SystemDictionary
http://code.google.com/p/pharo/issues/detail?id=3624

Here is the fix.
So far only one method getting wrong

Attachments:
        environment.1.cs  644 bytes


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3624 in pharo: LeftOver of Smalltalk and SystemDictionary

pharo
Updates:
        Status: closed

Comment #2 on issue 3624 by [hidden email]: LeftOver of Smalltalk  
and SystemDictionary
http://code.google.com/p/pharo/issues/detail?id=3624

13032