Skip to content

fix: removes opcache_hook again - #2564

Open
AlliBalliBaba wants to merge 1 commit into
mainfrom
fix/regular-opcache-reset-on-overflow
Open

fix: removes opcache_hook again#2564
AlliBalliBaba wants to merge 1 commit into
mainfrom
fix/regular-opcache-reset-on-overflow

Conversation

@AlliBalliBaba

Copy link
Copy Markdown
Contributor

This PR removes the opcache invalidate hook again. Might fix #2553.

A hard restart everytime the opcache resets due to memory overflow sounds like a good idea at first, but if a framework relies on a lot of opcache invalidation, restarts might become recursive.

Probably wasn't a good idea to hook into restarts like this in the first place as it's not really possible to test the behavior.

@AlliBalliBaba

Copy link
Copy Markdown
Contributor Author

As a sidenote: this makes opcache_resets from many invalidations potentially again unsafe, but as @henderkes mentioned, it's probably better to get a fix in php-src on some of these races

@henderkes

Copy link
Copy Markdown
Contributor

It's really unfortunate that we can't kill wedged threads that stall. Hoping for better Linux, Windows and macOS syscalls for that at some point.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request response times are getting incredibly slow

2 participants