Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103983 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4263 invoked from network); 1 Feb 2019 15:52:08 -0000 Received: from unknown (HELO mail-io1-f52.google.com) (209.85.166.52) by pb1.pair.com with SMTP; 1 Feb 2019 15:52:08 -0000 Received: by mail-io1-f52.google.com with SMTP id x6so5523979ioa.9 for ; Fri, 01 Feb 2019 04:32:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WbYDvXcMgsPvR/FCT74P9WMJnQYpwCKwGde86GDp8zo=; b=f40pp+LyTy+Brht6NQbzuA/yfbFbE6PMZXP601hMmVzVmQ31LdkVMvLMbA5vIK8yH5 jpZ9C5yw/4pjxIF9dckInyfnASJigTJSQQDZPbm0nTvWlZMm0MvMc50Gae8wi20cvRn+ qXC+X534F+VUF+8dlT+0Vl6DhntzKw/0MMCMMsqA1pCoKEzNoDfrdFmoo6SjXX8pGIf9 CEiPKVIQc/pgOyBPz8GQfH/QYflmuZRS9vpFcJgL/PNgC4BhcXRqbi6kw6aNYjpMeeEF ME3amEhHywjWnvHBdMV+5uprecEcSIsssh9J6+JTB4ihaa3Bap8EUxu6lWzldwbHgbOh MwVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WbYDvXcMgsPvR/FCT74P9WMJnQYpwCKwGde86GDp8zo=; b=S5rk8dAX+WV1MydlCXLhwHeaptGULnuHqFd4hyYDQyOx9RtLnmB0hTa4XAFzwlUkbR 5PXKgCvhoq4lwF613zZCXxzLL5Ivbaz19qVViPzWwTIfTk4cl+38KFUEfpgNirvjs/4Z cclsf8u5JelPNJpBK/K09RTwdYXCiVfTsLc5z6QgGy2QcFUCUH0EfQPyGvVj2qAnSqcX Asz9Q7QjWqjVhpcs3WWF9La/tvs6cLoPmTKMmf5vll04pQkW4YhdpWvjU6KRtcw1HIrW ARrQFh96lBiCct49a5KgF+8STVq4VkqC2HHdT/NxYFVLACqKajHe+w4RQcEobDz1oGI1 TQ+g== X-Gm-Message-State: AHQUAubiawM+AX6A896Hxayaj+GrcAxNoxrZtfZ9u6S8yvgNPoZxnmNj mGqK64AjQL7b+77iRosb6RxT5OkS/t/XGDmtPr9j5+IPYQY= X-Google-Smtp-Source: AHgI3Ib5CBnY+yTAMqgLOHaIQj2xXvDTsNJR1YmEQ+kS1p69COLTWN29GxR4QLus4G5tu7W8gXyLOsg/BLM3LS3IfSA= X-Received: by 2002:a5e:aa06:: with SMTP id s6mr22743948ioe.187.1549024335295; Fri, 01 Feb 2019 04:32:15 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 1 Feb 2019 13:31:58 +0100 Message-ID: To: Dmitry Stogov Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000040fbea0580d45543" Subject: Re: [PHP-DEV] [RFC] JIT From: nikita.ppv@gmail.com (Nikita Popov) --00000000000040fbea0580d45543 Content-Type: text/plain; charset="UTF-8" On Fri, Feb 1, 2019 at 1:09 PM Nikita Popov wrote: > On Thu, Jan 31, 2019 at 10:44 AM Dmitry Stogov wrote: > >> Hi Internals, >> >> >> I'm glad to finally propose including JIT into PHP. >> >> >> https://wiki.php.net/rfc/jit >> >> >> In the current state it may be included both into PHP-8, where we are >> going to continue active improvement, and into PHP-7.4, as an experimental >> feature. >> >> >> Thanks. Dmitry. >> > > I would like to check if the JIT provides an improvement for PHP-Parser. > Unfortunately I'm getting a segfault when running the tests. Should be > reproducible with > > git clone git@github.com:nikic/PHP-Parser.git > cd PHP-Parser > composer install > php-jit vendor/bin/phpunit > > I tried to debug this. Unfortunately my gdb doesn't seem to work with JIT: > It hangs when the script starts running, on line Zend/zend_gdb.c:84 in > zend_gdb_register_code. I don't know if that's a bug or I need to do > something additional here (I'm using GNU gdb (Ubuntu 8.1-0ubuntu3) > 8.1.0.20180409-git). > > Nikita > Another project that I would like to test is amp (git@github.com:amphp/amp.git). Here I am getting a segfault only on shutdown, after tests finished running. However there are a number of test failures, all basically looking the same: 1) Amp\Test\AllTest::testPendingPromiseArray TypeError: Return value of Amp\Loop\Internal\TimerQueue::removeAndRebuild() must be an instance of Amp\Loop\Internal\TimerQueueEntry, null returned /home/nikic/amp/lib/Loop/Internal/TimerQueue.php:100 /home/nikic/amp/lib/Loop/Internal/TimerQueue.php:64 /home/nikic/amp/lib/Loop/NativeDriver.php:107 /home/nikic/amp/lib/Loop/Driver.php:134 /home/nikic/amp/lib/Loop/Driver.php:72 /home/nikic/amp/lib/Loop.php:84 /home/nikic/amp/test/AllTest.php:52 Here is the line that incorrectly gets a null: https://github.com/amphp/amp/blob/c6f8425473ecc1cfc6909cf42b39abb39a11c837/lib/Loop/Internal/TimerQueue.php#L100 Nikita --00000000000040fbea0580d45543--