[BUG] [FIX] Comanche v4.6 Swiki v11 lockup
John M McIntosh
johnmci at smalltalkconsulting.com
Thu Oct 12 20:10:58 UTC 2000
There is a bug in the Squeak finalization logic. Sometimes things
like sockets don't get finalized. Other things that should be
finalized, well who knows what the side effects are for them, I've
just chased the socket issue. If you are using WeakKeyDictionaries
beware.
For heavily loaded Comanche based Swiki's this bug leads to all sorts
of interesting failures, lockups, failures to accept connections, and
poor performance.
To solve this problem now for Comanche based Swiki's (Comanche
4.6/Swiki 11), and before diving into a proper fix for the
finalization logic the following code will attempt to explicitly
destroy sockets to avoid triggering the finalization bug.
PS if you use and abuse Squeak Sockets ensure you closeAndDestroy or
destroy them after you are done, don't let the GC have to cleanup for
you since it might not until we fix the finalization problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DestroySocketsJMM.1.cs
Type: application/mac-binhex40
Size: 1531 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20001012/85f4f422/DestroySocketsJMM.1.hqx
-------------- next part --------------
--
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
===========================================================================
Custom Macintosh programming & various Smalltalk dialects
PGP Key: DSS/Diff/46FC3BE6
Fingerprint=B22F 7D67 92B7 5D52 72D7 E94A EE69 2D21 46FC 3BE6
===========================================================================
More information about the Squeak-dev
mailing list
|