Category
php-in-php · runtime-shrink (#1492)
Problem
lib/JIT/Builtin/ProcessExecCaptureLlvm.php (~144 LOC) hand-lowers __compiler_process_exec_capture for user-script standalone AOT because nested ProcessExecCaptureNativeJitHelper compile segfaulted during minimal init (#10492, #15407). The same semantics already live in ext/standard/ProcessExecCaptureNativeJitHelper.php (VmShellExecNative + phpc_native_ht_*). JitVmHelperLink::ensureCompiled + prelinked helper-runtime units (#15889) now avoid nested JIT during deferred init — same pattern as #18990 (InArrayNativeLlvm deletion).
php-src reference
PHP implementation target
lib/JIT/Builtin/ProcessRuntime.php — route deferred AOT through JitVmHelperLink::ensureCompiled + existing implementExecCaptureNativeBridge
- Delete
lib/JIT/Builtin/ProcessExecCaptureLlvm.php
Repro
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php vendor/bin/phpunit test/unit/ProcessRuntimeShrinkTest.php test/unit/ExecJitRuntimeShrinkTest.php'
Done when
Refs #1492, #10492, #9337
Category
php-in-php· runtime-shrink (#1492)Problem
lib/JIT/Builtin/ProcessExecCaptureLlvm.php(~144 LOC) hand-lowers__compiler_process_exec_capturefor user-script standalone AOT because nestedProcessExecCaptureNativeJitHelpercompile segfaulted during minimal init (#10492, #15407). The same semantics already live inext/standard/ProcessExecCaptureNativeJitHelper.php(VmShellExecNative + phpc_native_ht_*).JitVmHelperLink::ensureCompiled+ prelinked helper-runtime units (#15889) now avoid nested JIT during deferred init — same pattern as #18990 (InArrayNativeLlvm deletion).php-src reference
ext/standard/exec.c— php_execPHP implementation target
lib/JIT/Builtin/ProcessRuntime.php— route deferred AOT throughJitVmHelperLink::ensureCompiled+ existingimplementExecCaptureNativeBridgelib/JIT/Builtin/ProcessExecCaptureLlvm.phpRepro
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php vendor/bin/phpunit test/unit/ProcessRuntimeShrinkTest.php test/unit/ExecJitRuntimeShrinkTest.php'Done when
ProcessExecCaptureLlvm.phpdeleted; shrink test updated__compiler_process_exec_captureABI defined via JitVmHelperLink bridgemake bootstrap-selfhost-vm-driver-execute-probegreenRefs #1492, #10492, #9337