Message301321
> Would it make sense get() and put() to add gc.disable() and gc.enable() whenever GC is already enabled?
That doesn't sound very nice if some thread is waiting on a get() for a very long time (which is reasonable if you have a thread pool that's only used sporadically, for example). Also, using gc.disable() and gc.enable() in multi-threaded programs is a bit delicate. |
|
| Date |
User |
Action |
Args |
| 2017-09-05 15:50:58 | pitrou | set | recipients:
+ pitrou, gvanrossum, tim.peters, rhettinger, ncoghlan, zzzeek, python-dev, sbt, serhiy.storchaka, JohanAR, yselivanov, itamarst, davin |
| 2017-09-05 15:50:58 | pitrou | set | messageid: <[email protected]> |
| 2017-09-05 15:50:58 | pitrou | link | issue14976 messages |
| 2017-09-05 15:50:58 | pitrou | create | |
|