1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 00:53:30 +02:00
Files
archived-php-src/main
Niels Dossche 4da0da7f2d Implement GH-10854: TSRM should set a smarter value for expected_threads (#10867)
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.
2023-03-17 17:08:47 +01:00
..
2022-05-10 21:40:44 +01:00
2022-10-01 11:24:23 +02:00
2023-02-14 10:02:46 -05:00
2022-07-19 10:27:38 +01:00
2023-02-14 11:07:59 +00:00
2023-01-16 12:27:33 +01:00
2023-01-16 12:27:33 +01:00
2023-01-16 12:27:33 +01:00