Overview
| Artifact ID: | 18c19a728cdf9290f2915a9a1c5f68e18fe1c822 |
|---|---|
| Ticket: | 3390699fffffffffffffffffffffffffffffffff
socket_*-13.1 leaks |
| User & Date: | ferrieux on 2011-08-13 23:44:13 |
Changes
- icomment:
Some progress. I disabled the various panicky checks just to explore "what if" without spending the time of the optimized new "thread prepared to exit" test. Then I observed two things: - there is a race condition due to threadRep just waiting for the higher-level [thread names] to deplete instead of joining. When the thread is near the end and has removed itself from the list, the main thread quickly goes to [exit] and doesn't leave a chance for the other thread to finish its cleanups. - after adding a [threadtest join] in threadReap's loop (and a -joinable at thread creation in socket.test), the leak bill is much reduced: ==4495== definitely lost: 84 bytes in 4 blocks ==4495== indirectly lost: 3,012 bytes in 77 blocks ==4495== possibly lost: 136 bytes in 1 blocks ==4495== still reachable: 418 bytes in 15 blocks ==4495== suppressed: 0 bytes in 0 blocks
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"