Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve jit tests #12425

Closed
wants to merge 15 commits into from
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
sapi/cli/php run-tests.php \
-d zend_extension=opcache.so \
-d opcache.enable_cli=1 \
-d opcache.jit_buffer_size=16M \
-d opcache.jit_buffer_size=64M \
danog marked this conversation as resolved.
Show resolved Hide resolved
-d opcache.jit=tracing \
-P -q -x -j2 \
-g FAIL,BORK,LEAK,XLEAK \
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
export TEST_PHP_JUNIT=junit.out.xml
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
-d opcache.jit=${{ inputs.jitType }} \
-d opcache.jit_buffer_size=16M \
-d opcache.jit_buffer_size=64M \
-j$(/usr/bin/nproc) \
-g FAIL,BORK,LEAK,XLEAK \
--no-progress \
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
export TEST_PHP_JUNIT=junit.out.xml
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \
-d opcache.jit=${{ inputs.jitType }} \
-d opcache.jit_buffer_size=16M \
-d opcache.jit_buffer_size=64M \
-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 @@ -85,7 +85,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=16M
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
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_buffer_size=16M -d opcache.jit=tracing
- travis_wait 60 ./travis/test.sh -d opcache.jit_buffer_size=64M -d opcache.jit=tracing
danog marked this conversation as resolved.
Show resolved Hide resolved
- 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
2 changes: 1 addition & 1 deletion ext/opcache/tests/jit/assign_021.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JIT ASSIGN: 021
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