Skip to content

php-in-php: drop always-on LibcExtern malloc/realloc/free (#32273) - #32278

Merged
PurHur merged 1 commit into
masterfrom
php-in-php/drop-libc-malloc-32273
Aug 18, 2026
Merged

php-in-php: drop always-on LibcExtern malloc/realloc/free (#32273)#32278
PurHur merged 1 commit into
masterfrom
php-in-php/drop-libc-malloc-32273

Conversation

@PurHur

@PurHur PurHur commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #32273

Test plan

  • ./script/phpunit.sh --filter 'MallocRuntimeShrinkTest|LibcExternDeadDeclsRuntimeShrinkTest'
  • Full ./script/aot-smoke.sh (8/8) — not completed this run: first AOT compile was still in NestedJIT helper emission (ReadfileJitHelper::readfile) at 90s after the LibcExtern.php fingerprint change; did not wait for a whole-corpus helper rebuild (20 min cap). Source shrink gates are the issue repro.
./script/phpunit.sh --filter 'MallocRuntimeShrinkTest|LibcExternDeadDeclsRuntimeShrinkTest'
PHPUnit 9.6.21 by Sebastian Bergmann and contributors.

................................                                  32 / 32 (100%)

Time: 00:00.413, Memory: 213.77 MB

OK (32 tests, 651 assertions)

Made with Cursor

…dJIT module-local (#32273)

Canonical i8*/size_t ensureMallocFamily stops NestedJIT void*/i64 decls from minting malloc.1 (the #31894/#32122 class). User-script alloc stays MemoryManager __mm__*.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 577f33e into master Aug 18, 2026
1 check failed
@PurHur
PurHur deleted the php-in-php/drop-libc-malloc-32273 branch August 18, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

php-in-php: drop always-on LibcExtern malloc/realloc/free after NestedJIT module-local (#32092 shape)

1 participant