[php-src] PR #12864: Fix inappropriate assertion for JIT code buffer and code buffer size
| From: | LizYou | Date: | Mon, 04 Dec 2023 08:57:08 +0000 |
| Subject: | [php-src] PR #12864: Fix inappropriate assertion for JIT code buffer and code buffer size | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24408@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12864
Author: LizYou
Hit the following assertion failure when set opcache.jit_buffer_size=32G
/home/lizhen/php-src/ext/opcache/jit/ir/ir_x86.dasc:9386: ir_emit_exitgroup: Assertion
`((((intptr_t)((char*)exit_addr - ((char*)code_buffer + code_buffer_size))) <= 0x7fffffff)
&& (((intptr_t)((char*)exit_addr - ((char*)code_buffer + code_buffer_size))) >=
(-2147483647 - 1)))' failed.
Theoretically, if we can't map the JIT buffer into 4G memory, the two assertions will cause
false alarm.