You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternative to GH-10870. Use atomic writes for adding the IS_STR_VALID_UTF8 flag
to UTF-8-verified interned strings in ext-mbstring. x86 and other architectures
guarantee atomic writes/reads for aligned variables up to size_t, which we
already rely on, particularly for zend_op.handler being swapped out in the JIT.
The atomic write is only needed here to not drop any other newly written bits
(which there currently aren't any of). We use GCC and sync atomics because they
don't require annotating the modified variable with the C11 _Atomic keyword.
0 commit comments