Skip to content

Fix GH-24319: Make OPcache hash entry publication and indirection atomic - #25258

Draft
morrisonlevi wants to merge 3 commits into
php:PHP-8.4from
morrisonlevi:levi/gh-24319-8.4
Draft

morrisonlevi wants to merge 3 commits into
php:PHP-8.4from
morrisonlevi:levi/gh-24319-8.4

Conversation

@morrisonlevi

@morrisonlevi morrisonlevi commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

See #24319 and #24320 (comment). This branch is an implementation of my suggestion to use a tagged atomic pointer. I verified these problems on both aarch64 and x86_64, but in the wild I've only seen crash reports on aarch64.

The tests were written entirely with AI. I will attempt to clean them up but they are exactly the kind of test that is difficult for humans to write (at least initially). Also, they are quite heavy, and maybe we do not wish to commit them.

The names of my atomic functions are a bit gnarly. When we merge to master, we should change the implementation as atomics have been simplified there.

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