Repository navigation
php-in-php: FtokRuntime NestedJIT → JitVmHelperLink::ensureCompiled (#1492) #22300
Copy link
Copy link
Closed
Closed
Copy link
Labels
area:compilerCompiler / CFG / JITCompiler / CFG / JITenhancementNew feature or requestNew feature or requestimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimSpec complete: repro, php-src ref, done-when — safe for workers to claimphase-0:FoundationPhase 0 – foundation & DevExPhase 0 – foundation & DevEx
Description
Activity
- addedenhancementNew feature or requestNew feature or requestphase-0:FoundationPhase 0 – foundation & DevExPhase 0 – foundation & DevExarea:compilerCompiler / CFG / JITCompiler / CFG / JITimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimSpec complete: repro, php-src ref, done-when — safe for workers to claim
on Jul 22, 2026 claim: PHP Runtime → PHP — starting this run
Migrating
FtokRuntimeNestedJIT hand-roll toJitVmHelperLink::ensureCompiled(peer StringStrcoll #22256 / LdapRuntime #22276).Pre-claim gate snapshot (master @ 7574cb3)
Gate Status make bootstrap-selfhost-linkOK php script/bootstrap-inventory.php --checkOK 6412/6412 prior release-readiness --jsonuser_release_ready: yes(north-star5-fast + vm-driver-probe ok)- added a commit that references this issue
on Jul 22, 2026 Merged via #22301.
Verification
Command Result vendor/bin/phpunit test/unit/FtokRuntimeShrinkTest.phpOK (5 tests, 19 assertions) vendor/bin/phpunit --filter ftokOK (10 tests) make bootstrap-selfhost-vm-driver-execute-probeOK make north-star5-verify-fastOK (fast) php script/bootstrap-inventory.php --checkOK 6412/6412 php script/check-bootstrap-gen0-manifest-sync.phpOK NestedJIT shrink
lib/JIT/Builtin/FtokRuntime.php: 185 → 158 lines — deleted hand-rolledNestedJitCompileScope::run+parseAndCompile+new JIT(); nowJitVmHelperLink::ensureCompiled- Inventory warnings for FtokRuntime: 3 → 1
Metadata
Metadata
Assignees
Labels
area:compilerCompiler / CFG / JITCompiler / CFG / JITenhancementNew feature or requestNew feature or requestimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimSpec complete: repro, php-src ref, done-when — safe for workers to claimphase-0:FoundationPhase 0 – foundation & DevExPhase 0 – foundation & DevEx
Category
php-in-php· runtime-shrink (#1492, peer #22256 StringStrcoll / #22276 LdapRuntime)Problem
lib/JIT/Builtin/FtokRuntime.phpstill hand-rollsNestedJitCompileScope::run+parseAndCompile+new JIT()forFtokJitHelper.php. Peer runtimes route helper compile throughJitVmHelperLink::ensureCompiledfor consistent user-script env clearing, insert-block restore, and helper-runtime cache.php-src reference
PHP_FUNCTION(ftok)(semantics unchanged; compile-path only)PHP implementation target
lib/JIT/Builtin/FtokRuntime.php— replaceensureJitHelperCompiledbody withJitVmHelperLink::ensureCompiled; drop unuseduse NestedJitCompileScope/use JITtest/unit/FtokRuntimeShrinkTest.php— guardJitVmHelperLink::ensureCompiled, no hand-rolledNestedJitCompileScope::run/parseAndCompile/new JIT(Repro
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit test/unit/FtokRuntimeShrinkTest.php' make bootstrap-selfhost-vm-driver-execute-probeDone when
FtokRuntimeusesJitVmHelperLink::ensureCompiledonlymake bootstrap-selfhost-vm-driver-execute-probegreenRefs #1492, #9585, #22256, #22276