Category
php-in-php · runtime-shrink (#1492, peer #22231 CopyRuntime / #22187 SysGetTempDirRuntime)
Problem
lib/JIT/Builtin/StringStrcoll.php still hand-rolls NestedJitCompileScope::run + parseAndCompile + new JIT() for StrcollJitHelper.php. Peer runtimes route helper compile through JitVmHelperLink::ensureCompiled for consistent user-script env clearing, insert-block restore, and helper-runtime cache.
php-src reference
PHP implementation target
lib/JIT/Builtin/StringStrcoll.php — replace ensureJitHelperCompiled body with JitVmHelperLink::ensureCompiled; drop unused use NestedJitCompileScope / use JIT
test/unit/StrcollRuntimeShrinkTest.php — guard JitVmHelperLink::ensureCompiled, no hand-rolled NestedJitCompileScope::run / parseAndCompile / new JIT(
Repro
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit test/unit/StrcollRuntimeShrinkTest.php'
make bootstrap-selfhost-vm-driver-execute-probe
Done when
Refs #1492, #13566, #22231, #22187
Category
php-in-php· runtime-shrink (#1492, peer #22231 CopyRuntime / #22187 SysGetTempDirRuntime)Problem
lib/JIT/Builtin/StringStrcoll.phpstill hand-rollsNestedJitCompileScope::run+parseAndCompile+new JIT()forStrcollJitHelper.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(strcoll)(semantics unchanged; compile-path only)PHP implementation target
lib/JIT/Builtin/StringStrcoll.php— replaceensureJitHelperCompiledbody withJitVmHelperLink::ensureCompiled; drop unuseduse NestedJitCompileScope/use JITtest/unit/StrcollRuntimeShrinkTest.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/StrcollRuntimeShrinkTest.php' make bootstrap-selfhost-vm-driver-execute-probeDone when
StringStrcollusesJitVmHelperLink::ensureCompiledonlymake bootstrap-selfhost-vm-driver-execute-probegreenRefs #1492, #13566, #22231, #22187