[php-src] PR #11618: Improve zend_jit_stop_counter_handlers() locking
| From: | iluuu1994 | Date: | Fri, 07 Jul 2023 14:40:05 +0000 |
| Subject: | [php-src] PR #11618: Improve zend_jit_stop_counter_handlers() locking | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22931@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11618
Author: iluuu1994
Use atomic to prevent resetting handlers from multiple processes or threads.
Fixes GH-11609
Theoretically, a data race may happen between
zend_atomic_bool_exchange and
zend_shared_alloc_lock. But this is not a problem because ZCSG(hash) would
contain any newly added scripts and reset their handlers as well.