-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit 4da0da7
The tsrm_startup() function is currently always called with expected_threads = 1.
This means that the hashtable used in the TSRM will only contain a single bucket,
and all thread resources will therefore be in the same linked list.
So it's not really a hashtable right now, even though it's supposed to be.
This patch adds a function tsrm_startup_ex() which takes the expected
thread count as an argument. It also keeps the tsrm_startup() function
so there are no BC breaks.
In the Apache SAPI we query how many threads we have, and pass that to
the tsrm_startup_ex() function.
1 parent 31ccfbd commit 4da0da7
3 files changed
+19
-4
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2647 | 2647 |
| |
2648 | 2648 |
| |
2649 | 2649 |
| |
2650 | - | ||
2651 | - | ||
2650 | + | ||
2652 | 2651 |
| |
2653 | - | ||
2652 | + | ||
2654 | 2653 |
| |
2655 | 2654 |
| |
2656 | 2655 |
| |
2657 | 2656 |
| |
2657 | + | ||
2658 | + | ||
2659 | + | ||
2660 | + | ||
2661 | + | ||
2662 | + | ||
2658 | 2663 |
| |
2659 | 2664 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 | + | ||
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
485 | 485 |
| |
486 | 486 |
| |
487 | 487 |
| |
488 | - | ||
488 | + | ||
489 | + | ||
490 | + | ||
491 | + | ||
492 | + | ||
493 | + | ||
494 | + | ||
495 | + | ||
496 | + | ||
497 | + | ||
489 | 498 |
| |
490 | 499 |
| |
491 | 500 |
| |
|
0 commit comments