Repository navigation
Commit e51fa6a
authored
Add OPcache restart hook, fired when a restart is carried out (#23828)
zend_accel_schedule_restart_hook tells an observer that a restart of
OPcache's shared memory is coming, but not whether or when it happens:
the restart runs later, at request startup, on whichever thread or
process first finds the cache unused, and it can stay pending for a
long time. This adds zend_accel_restart_hook, called on that thread once
per restart, right after the restart completed, with the same reason.
A threaded SAPI needs it for its logs and metrics, since the restart
rewinds shared memory that other threads may still reference.1 parent f5e5e34 commit e51fa6a
4 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
387 | 388 | | |
| 389 | + | |
| 390 | + | |
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2974 | 2974 | | |
2975 | 2975 | | |
2976 | 2976 | | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
2977 | 2980 | | |
2978 | 2981 | | |
2979 | 2982 | | |
| |||
3019 | 3022 | | |
3020 | 3023 | | |
3021 | 3024 | | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
3022 | 3028 | | |
3023 | 3029 | | |
3024 | 3030 | | |
| |||
3029 | 3035 | | |
3030 | 3036 | | |
3031 | 3037 | | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
3032 | 3043 | | |
3033 | 3044 | | |
3034 | 3045 | | |
| |||
0 commit comments