Category
php-in-php · runtime-shrink (#1492, peer #22355 CheckdnsrrRuntime / #22313 PasswordRandomBytesRuntime)
Problem
lib/JIT/Builtin/GethostbyaddrRuntime.php still hand-rolls NestedJitCompileScope::run + parseAndCompile + new JIT() for GethostbyaddrJitHelper.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/GethostbyaddrRuntime.php — replace ensureJitHelperCompiled body with JitVmHelperLink::ensureCompiled; use lookupCompiled; drop unused use NestedJitCompileScope / use JIT
test/unit/GethostbyaddrRuntimeShrinkTest.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/GethostbyaddrRuntimeShrinkTest.php'
make bootstrap-selfhost-vm-driver-execute-probe
Done when
Refs #1492, #9474, #22355, #22313
Category
php-in-php· runtime-shrink (#1492, peer #22355 CheckdnsrrRuntime / #22313 PasswordRandomBytesRuntime)Problem
lib/JIT/Builtin/GethostbyaddrRuntime.phpstill hand-rollsNestedJitCompileScope::run+parseAndCompile+new JIT()forGethostbyaddrJitHelper.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(gethostbyaddr)(semantics unchanged; compile-path only)PHP implementation target
lib/JIT/Builtin/GethostbyaddrRuntime.php— replaceensureJitHelperCompiledbody withJitVmHelperLink::ensureCompiled; uselookupCompiled; drop unuseduse NestedJitCompileScope/use JITtest/unit/GethostbyaddrRuntimeShrinkTest.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/GethostbyaddrRuntimeShrinkTest.php' make bootstrap-selfhost-vm-driver-execute-probeDone when
GethostbyaddrRuntimeusesJitVmHelperLink::ensureCompiledonlymake bootstrap-selfhost-vm-driver-execute-probegreenRefs #1492, #9474, #22355, #22313