Message6145

Author zyasoft
Recipients amak, gdoutch, zyasoft
Date 2010-10-04.22:47:09
SpamBayes Score 2.6762626e-07
Marked as misclassified No
Message-id <1286232429.89.0.831699325745.issue1660@psf.upfronthosting.co.za>
In-reply-to
Content
Jython's set is threadsafe, including under add, remove, and copy (although copy doesn't have any guarantees on what specifically will be copied through the underlying iteration). This is because of the underlying usage of ConcurrentHashMap.

However, any composite operation, much like += 1, will not be threadsafe, unless it's locked or using an appropriate primitive that supports it. Or if it's used in a thread confined fashion, of course it doesn't matter.

Regardless casual inspection of _active_sockets looks fine.

Next step is to do the memory analysis. I'll try to look into this tonight.
History
Date User Action Args
2010-10-04 22:47:09zyasoftsetmessageid: <1286232429.89.0.831699325745.issue1660@psf.upfronthosting.co.za>
2010-10-04 22:47:09zyasoftsetrecipients: + zyasoft, amak, gdoutch
2010-10-04 22:47:09zyasoftlinkissue1660 messages
2010-10-04 22:47:09zyasoftcreate