M2 spine: ob_* AOT runtime + JitOb scaffolds (North Star 2) - #1876
Merged
Merged
Conversation
…#1492) Add native output-buffer runtime (phpc_ob.c) and LLVM JitOb* lowering classes for self-host AOT link. Bundle four ob Jit* units in compiler_lib_spine_smoke (589/593 inventory). Register __phpc_ob_* externals for JIT modules. JIT call() for debug_backtrace/ob_* remains deferred (MCJIT runtime segfault on nested hashtables / ob stack — follow stream_context_create enablement). Closes #1492 (batch). Refs #1378, #118, #1419. Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
force-pushed
the
agent/stdlib-debug-backtrace-ob-jit
branch
from
May 25, 2026 03:00
6b49495 to
a02aded
Compare
This was referenced May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
phpc_ob.c,phpc_ob_storage.c) and link it fromlib/AOT/Linker.phpfor AOT/self-host binaries.JitObStart,JitObGetLevel,JitObGetClean,JitObEndFlush) and register__phpc_ob_*externals viaObOutput::registerExternals().compiler_lib_spine_smokebundle (+4 units) and sync North Star 2 footnotes to 589 / 593 inventory.JIT
call()fordebug_backtrace/ob_*remains deferred (MCJIT runtime segfault on this harness — same class of issue as pre-enablementstream_context_create/ nested frame hashtables in #1854). VM paths unchanged.Closes #1492
Test plan
php script/audit-stdlib-jit.php/php script/capability-matrix.phpcheck-wave3-roadmap-sync/check-selfhost-spine-count-sync(589/593)BootstrapSelfhostBundleTest(spine require_once count)BOOTSTRAP_LIB_SPINE_SMOKE=1 make bootstrap-selfhost-lib-spine-smoke(needs host LLVM 9 / 22.04-dev image)./script/ci-local.shfull gate on a machine with working MCJITMade with Cursor