Skip to content

Commit

Permalink
Improve jit tests
Browse files Browse the repository at this point in the history
Closes GH-12425
  • Loading branch information
danog authored and iluuu1994 committed Nov 14, 2023
1 parent 82dcfd1 commit 2ca142e
Show file tree
Hide file tree
Showing 358 changed files with 357 additions and 363 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,6 @@ jobs:
-d zend_extension=opcache.so \
-d opcache.enable_cli=1 \
-d opcache.jit_buffer_size=64M \
-d opcache.jit_max_root_traces=100000 \
-d opcache.jit_max_side_traces=100000 \
-d opcache.jit_max_exit_counters=100000 \
-d opcache.jit=tracing \
-P -q -x -j2 \
-g FAIL,BORK,LEAK,XLEAK \
Expand Down
3 changes: 0 additions & 3 deletions .github/actions/test-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ runs:
-d opcache.jit=${{ inputs.jitType }} \
-d opcache.protect_memory=1 \
-d opcache.jit_buffer_size=64M \
-d opcache.jit_max_root_traces=100000 \
-d opcache.jit_max_side_traces=100000 \
-d opcache.jit_max_exit_counters=100000 \
-j$(/usr/bin/nproc) \
-g FAIL,BORK,LEAK,XLEAK \
--no-progress \
Expand Down
3 changes: 0 additions & 3 deletions .github/actions/test-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ runs:
-d opcache.jit=${{ inputs.jitType }} \
-d opcache.protect_memory=1 \
-d opcache.jit_buffer_size=64M \
-d opcache.jit_max_root_traces=100000 \
-d opcache.jit_max_side_traces=100000 \
-d opcache.jit_max_exit_counters=100000 \
-j$(sysctl -n hw.ncpu) \
-g FAIL,BORK,LEAK,XLEAK \
--no-progress \
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/windows/test_task.bat
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ set OPENSSL_CONF=
rem set SSLEAY_CONF=

rem prepare for OPcache
if "%OPCACHE%" equ "1" set OPCACHE_OPTS=-d opcache.enable=1 -d opcache.enable_cli=1 -d opcache.protect_memory=1 -d opcache.jit_buffer_size=64M -d opcache.jit_max_root_traces=100000 -d opcache.jit_max_side_traces=100000 -d opcache.jit_max_exit_counters=100000 -d opcache.jit=tracing
if "%OPCACHE%" equ "1" set OPCACHE_OPTS=-d opcache.enable=1 -d opcache.enable_cli=1 -d opcache.protect_memory=1 -d opcache.jit_buffer_size=64M -d opcache.jit=tracing
rem work-around for failing to dl(mysqli) with OPcache (https://github.com/php/php-src/issues/8508)
if "%OPCACHE%" equ "1" set OPCACHE_OPTS=%OPCACHE_OPTS% -d extension=mysqli

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ jobs:
echo opcache.max_accelerated_files=100000 >> /etc/php.d/opcache.ini
echo memory_limit=-1 >> /etc/php.d/opcache.ini
php -v
- name: Test AMPHP
if: matrix.branch.ref != 'PHP-8.0'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ before_script:

# Run PHPs run-tests.php
script:
- travis_wait 60 ./travis/test.sh -d opcache.jit=tracing -d opcache.jit_buffer_size=64M -d opcache.jit_max_root_traces=100000 -d opcache.jit_max_side_traces=100000 -d opcache.jit_max_exit_counters=100000
- travis_wait 60 ./travis/test.sh -d opcache.jit=tracing -d opcache.jit_buffer_size=64M
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'

after_success:
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/bug81272.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ opcache
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=16M
opcache.jit_buffer_size=64M
opcache.jit=function
--FILE--
<?php
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 001
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=32M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 002
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=32M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 003
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=32M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 004
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=32M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_005.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 005
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=32M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 006
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=32M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_007.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 007 Addition with immediate values
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
opcache.protect_memory=1
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_008.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 008 Addition with reference IS_VAR
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
opcache.protect_memory=1
opcache.jit=tracing
--EXTENSIONS--
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_009.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 009 two array references
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
--FILE--
<?php
$a = [];
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_010.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 010 overflow handling
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
--FILE--
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_011.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 011 overflow handling
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
--FILE--
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_012.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 012 register allocation for 64-bit constant
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
--FILE--
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_013.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 013 register allocation (incorrect hinting)
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
--FILE--
<?php
function y(){
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/add_014.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ADD: 014 incorrect guard elimination
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
--FILE--
<?php
function test() {
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/and_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT BW_AND: 001 (empty string)
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
--FILE--
<?php
$a = [];
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/and_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT BW_AND: 002 (memory leak)
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
--FILE--
<?php
function t($a) {
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/array_elem_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Occupied next element
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
--FILE--
<?php
$float = 100000000000000000000000000000000000000;
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 001
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 002
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=1
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 003
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 004
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_005.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 005
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 006
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_007.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 007
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_008.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 008
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_009.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 009
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_010.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 010
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_011.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 011
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_012.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 012
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_013.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 013
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_014.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 014
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_015.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 015
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_016.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 016
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_017.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 017
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_018.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 018
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_019.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 019
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_020.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 020
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit_buffer_size=64M
;opcache.jit_debug=257
--EXTENSIONS--
opcache
Expand Down
Loading

0 comments on commit 2ca142e

Please sign in to comment.