[bug] Dead I18N.Encoders.Iconv instances are not collected

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

[bug] Dead I18N.Encoders.Iconv instances are not collected

S11001001
Issue status update for
http://smalltalk.gnu.org/node/99
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/99

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Bindings (other)
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  S11001001
 Updated by:   S11001001
 Status:       active

Plug something like


1000 timesRepeat: [128 asCharacter asString: 'GB18030']!


or 'UTF-8' or whatever.  Watch I18N.Encoders.Iconv instanceCount, which
implies they aren't getting collected, although they appear to be
finalized and removed from the finalizableObjects set, including being
wiped out from the indexed instvars.




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] Dead I18N.Encoders.Iconv instances are not collected

Paolo Bonzini-2

> or 'UTF-8' or whatever.  Watch I18N.Encoders.Iconv instanceCount, which
> implies they aren't getting collected, although they appear to be
> finalized and removed from the finalizableObjects set, including being
> wiped out from the indexed instvars.

But they are not removed from ObjectMemory's dependents.  Though, making
every such instance a dependent of ObjectMemory is pretty dumb anyway.
Fixed in the attached patch.

Paolo

* looking for [hidden email]--2004b/smalltalk--devo--2.2--patch-599 to compare with
* comparing to [hidden email]--2004b/smalltalk--devo--2.2--patch-599

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] Dead I18N.Encoders.Iconv instances are not collected

S11001001
On Wed, 2007-10-10 at 21:52 +0200, Paolo Bonzini wrote:
> plain text document attachment (gst-iconv-sets.patch)
> * looking for [hidden email]--2004b/smalltalk--devo--2.2--patch-599 to compare with
> * comparing to [hidden email]--2004b/smalltalk--devo--2.2--patch-599

Talk about a simple fix :)

--
;;; Stephen Compall ** http://scompall.nocandysw.com/blog **
"Peta" is Greek for fifth; a petabyte is 10 to the fifth power, as
well as fifth in line after kilo, mega, giga, and tera.
  -- Lee Gomes, performing every Wednesday in his tech column
     "Portals" on page B1 of The Wall Street Journal

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (196 bytes) Download Attachment