Skip to content

Trust: extract TryCatchFinallyAndUncaughtDispatch from VM.php (#36403) - #37057

Merged
PurHur merged 2 commits into
masterfrom
agent/issue-36403-try-catch-finally-concern
Sep 6, 2026
Merged

Trust: extract TryCatchFinallyAndUncaughtDispatch from VM.php (#36403)#37057
PurHur merged 2 commits into
masterfrom
agent/issue-36403-try-catch-finally-concern

Conversation

@PurHur

@PurHur PurHur commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Move-only Concern extract: TryCatchFinallyAndUncaughtDispatch (findCatchFrameForThrowraiseUncaughtExceptionWithNext) from lib/VM.php
  • Size-budget ratchet: lib/VM.php 17422 → 16545 (target 15k)
  • Spine smoke + bootstrap inventory/profile + sidecar stamp synced for the new Concern path

Part of #36403

php-src: Zend/zend_exceptions.c (zend_throw_exception_internal / catch matching), Zend/zend_vm_def.h ZEND_CATCH / ZEND_FAST_CALL finally, return-through-finally unwind. No new C ABI; no opcode/IR shape change.

Test plan

  • php script/check-size-budgets.php → OK (lib/VM.php 16545/16545)
  • php script/bootstrap-inventory.php --check → OK (8345/8345)
  • php script/check-selfhost-spine-coverage-sync.php → OK
  • php script/check-selfhost-spine-sidecar-sync.php → OK
  • ./script/aot-smoke.sh9/9 + size gate OK
  • make north-star5-verify-fast → OK (spine 8345/8345)
  • try/finally VM smoke matches Zend (fin1 / catch:x / fin2 / 7)
  • Not run: script/differential-sweep.sh --aot (move-only extract; no lowering change)

Made with Cursor

Move-only Concern split for try/catch/finally unwind and uncaught dispatch so VM.php can ratchet under the size-budget ceiling (17422 → 16545).

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur force-pushed the agent/issue-36403-try-catch-finally-concern branch from 6ddf0a9 to 9dc8f39 Compare September 6, 2026 19:41
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