[vwnc] DefaultEncoder in Filename not threadsafe

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

[vwnc] DefaultEncoder in Filename not threadsafe

Terry Raymond
The DefaultEncoder shared variable in Filename is an
EncodedStream. Being that it is mutable and not protected
it is not threadsafe.

As a general rule, mutable singletons are not threadsafe
and should be either be eliminated(preferable) or protected.

Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] DefaultEncoder in Filename not threadsafe

Ralf Propach
Terry Raymond wrote:

> The DefaultEncoder shared variable in Filename is an
> EncodedStream. Being that it is mutable and not protected
> it is not threadsafe.
>
> As a general rule, mutable singletons are not threadsafe
> and should be either be eliminated(preferable) or protected.
>
> Terry
>  
> ===========================================================
> Terry Raymond
> Crafted Smalltalk
> 80 Lazywood Ln.
> Tiverton, RI  02878
> (401) 624-4517      [hidden email]
> <http://www.craftedsmalltalk.com>
> ===========================================================
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
AR# 40500
Description Filename's use of DefaultEncoder is not thread safe

--
Ralf Propach, [hidden email]
Tel: +49 231 975 99 38   Fax: +49 231 975 99 20
Georg Heeg eK (Dortmund)
Handelsregister: Amtsgericht Dortmund  A 12812
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc