Skip to content

refactor(thread_pool): drop the now-redundant volatile locals (true-async/server#93)#179

Merged
EdmondDantes merged 1 commit into
mainfrom
thread-pool-drop-redundant-volatile
Jul 4, 2026
Merged

refactor(thread_pool): drop the now-redundant volatile locals (true-async/server#93)#179
EdmondDantes merged 1 commit into
mainfrom
thread-pool-drop-redundant-volatile

Conversation

@EdmondDantes

Copy link
Copy Markdown
Contributor

Follow-up to #178. Splitting the two inner zend_try blocks into helpers already removes the nesting that made GCC misfire -Wmaybe-uninitialized, so the volatile on the five loop-locals (state, snapshot, worker_coro, task_scope, body_bailed) is dead weight — verified 0 -O2 warnings without it. Drops those volatile and trims the explanatory comments to one line. The helpers keep their own volatile bool bailed (that flag is set in zend_catch after the longjmp and read on return — genuinely setjmp-live). thread_pool suite 78/79 (pre-existing XFAIL WARN), behavior unchanged.

… the nested zend_try into helpers already clears -Wmaybe-uninitialized; trim comments (true-async/server#93)
@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@EdmondDantes EdmondDantes merged commit 530ac38 into main Jul 4, 2026
9 checks passed
@EdmondDantes EdmondDantes deleted the thread-pool-drop-redundant-volatile branch July 4, 2026 19:12
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.

1 participant