Message6148
Fixed in r7135
The actual problem is not in socket support, but in threads. In my previous change here, I was wrong about the Guava map in use, it's actually the canonical map org.python.modules._threading._jthread_to_pythread. The solution is to have it both weak keys AND weak values, similar to what we saw with class_to_type.
I can now run Gareth's example code in excess of 200,000 times (without the time.sleep of course, I have no patience :) for that), which is the point that the usual heap allocation of 512M would be exhausted on my laptop.
So we need to consider how to test this in regrtest. Probably the best bet is to use the SocketServer code in a subprocess with a minimal heap, run it for the equivalent of 10s or so, and verify that it exits without error. |
|
Date |
User |
Action |
Args |
2010-10-05 20:20:37 | zyasoft | set | messageid: <1286310037.96.0.346270528404.issue1660@psf.upfronthosting.co.za> |
2010-10-05 20:20:37 | zyasoft | set | recipients:
+ zyasoft, amak, gdoutch |
2010-10-05 20:20:37 | zyasoft | link | issue1660 messages |
2010-10-05 20:20:36 | zyasoft | create | |
|