[issue7023] Marshal doesn't release GIL while dumping

2009-09-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: In fact, almost no place in marhsal is thread safe, so releasing the GIL anywhere is not safe. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker

[issue7023] Marshal doesn't release GIL while dumping

2009-09-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch is wrong; the function allows other threads to run while it calls _PyString_Resize(), this will lead to crashes. -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue7023] Marshal doesn't release GIL while dumping

2009-09-30 Thread zengke
Changes by zengke : -- versions: +Python 2.4, Python 2.5, Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue7023] Marshal doesn't release GIL while dumping

2009-09-30 Thread zengke
New submission from zengke : If marshal.dumps() is handling a large data, It keeps acquiring the GIL and may take several seconds, Other threads therefor are blocked. marshal.loads should also be friendly to other threads. -- components: Library (Lib) files: marshal_threads.patch keyword