Author nickmbailey
Recipients nickmbailey
Date 2016-02-01.22:41:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There is an issue with the synchronization in PySystemStateCloser. It's synchronizing on the class object which is problematic because there will be many instances of that object and the synchronization lock will also need to be acquired during GC. I think we just need to switch to synchronizing on individual instances of the object. I have a script to demonstrate the issue here:

I think the patch in that gist is required to make GC slow enough to see the issue or something like that. The script won't reproduce the issue until you add the patch.
Date User Action Args
2016-02-01 22:41:09nickmbaileysetrecipients: + nickmbailey
2016-02-01 22:41:09nickmbaileysetmessageid: <>
2016-02-01 22:41:09nickmbaileylinkissue2457 messages
2016-02-01 22:41:08nickmbaileycreate