Commit ca9d60f
Revert "index-pack: spawn threads atomically"
This reverts commit 993d38a.
That commit was trying to solve a race between LSan setting up the
threads stack and another thread calling exit(), by making sure that all
pthread_create() calls have finished before doing any work that might
trigger the exit().
But that isn't sufficient. The setup code actually runs in the
individual threads themselves, not in the spawning thread's call to
pthread_create(). So while it may have improved the race a bit, you can
still trigger it pretty quickly with:
make SANITIZE=leak
cd t
./t5309-pack-delta-cycles.sh --stress
Let's back out that failed attempt so we can try again.
Signed-off-by: Jeff King <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent d601aee commit ca9d60f
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1336 | 1336 | | |
1337 | 1337 | | |
1338 | 1338 | | |
1339 | | - | |
1340 | 1339 | | |
1341 | 1340 | | |
1342 | 1341 | | |
1343 | 1342 | | |
1344 | 1343 | | |
1345 | 1344 | | |
1346 | 1345 | | |
1347 | | - | |
1348 | 1346 | | |
1349 | 1347 | | |
1350 | 1348 | | |
| |||
0 commit comments