Improve JIT config in fuzzer SAPI (#12519)

* Improve JIT config in fuzzer SAPI

* Fix

* Fix

* Update
This commit is contained in:
Daniil Gentili 2023-11-14 19:26:24 +01:00 committed by GitHub
parent 50c2a9305c
commit df286a1b98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -58,7 +58,8 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) {
"zend_extension=%s\n"
"opcache.validate_timestamps=0\n"
"opcache.file_update_protection=0\n"
"opcache.jit_buffer_size=256M",
"opcache.jit_buffer_size=128M"
"opcache.protect_memory=1",
opcache_path);
free(opcache_path);

View file

@ -62,12 +62,16 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) {
"zend_extension=%s\n"
"opcache.validate_timestamps=0\n"
"opcache.file_update_protection=0\n"
"opcache.jit_buffer_size=256M\n"
"opcache.memory_consumption=1024\n"
"opcache.jit_buffer_size=128M\n"
"opcache.jit_hot_func=1\n"
"opcache.jit_hot_loop=1\n"
"opcache.jit_hot_return=1\n"
"opcache.jit_hot_side_exit=1\n"
"opcache.jit_max_root_traces=32768",
"opcache.jit_max_root_traces=100000\n"
"opcache.jit_max_side_traces=100000\n"
"opcache.jit_max_exit_counters=100000\n"
"opcache.protect_memory=1\n",
opcache_path);
free(opcache_path);