Skip to content

move __thread variables into heap storage - #24365

Draft
henderkes wants to merge 1 commit into
php:PHP-8.6from
henderkes:fix/thread-variables-heap-storage
Draft

henderkes wants to merge 1 commit into
php:PHP-8.6from
henderkes:fix/thread-variables-heap-storage

Conversation

@henderkes

@henderkes henderkes commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

alternative to #24301

also closes #24262

@ndossche still not a guarantee that things will work, but brings 8.6's tls size back to 8.5's.

The php_md5_crypt_r change is worth another look because it seems the out parameter isn't used, so I don't know what it even exists for. But it's alive long enough that we can use that instead of abusing thread storage for a local symbol there.

I definitely favour the other solution, because we're just delaying the inevitable here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant