Groups | Search | Server Info | Login | Register


Groups > perl.perl5.changes > #34421

[Perl/perl5] 019cd2: Split tests for B::Deparse refaliasing into two se...

Newsgroups perl.perl5.changes
Path csiph.com!fu-berlin.de!bofh.it!nntp.perl.org
Xref csiph.com perl.perl5.changes:34421
Return-Path <noreply@github.com>
Mailing-List contact perl5-changes-help@perl.org; run by ezmlm
Delivered-To mailing list perl5-changes@perl.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=perl.org; h=date :from:to:message-id:subject:mime-version:content-type :content-transfer-encoding:list-unsubscribe:reply-to; s=dr1; bh= UVz4ftF+XZCXr3eJB3+9ZFtmTyGsHyAu6nePdzh1lvg=; b=NFRxC7Syl5Tgtx8S WsgxIQpxrOA3rnPvS9D8D1pGqVlo0CIGhlWKS3fkCRK63ymtRk6nSENYH9ZxJURY q91bVLZZ6l9yFCXwX+nOhSkHwAor0lvBLEtWoVDDMSwgs5KekWegpKIaRV6p8dyY xGjrjRtCW+nRsNBbf/LtuMOv2bhJ5hkmi/cvyOYViQb9izzdT4MYyIYVJo6GqsOE y8q9az7WeV6A4uGKTa0c91fIfMPOcvO2LdfJ4fsC26hXqBW1Et6zVdMWMP7hSxzq Yw/tZt6UyXVxs4SFgk24oEJ0CBd9Dt47Rr8+EYEwo4yBGTygcW/xCvYAQ1ubBj9O qSrgzA==
Received (qmail 13933 invoked from network); 2 Mar 2026 11:16:19 -0000
Received from xx1.develooper.com (147.75.38.233) by x6.develooper.com with SMTP; 2 Mar 2026 11:16:19 -0000
Received from inbound-egress-10.mailchannels.net (inbound-egress-10.mailchannels.net [23.83.212.2]) by xx1.develooper.com (Postfix) with ESMTP id E1EBB7C1A1 for <perl5-changes@perl.org>; Mon, 2 Mar 2026 03:16:18 -0800 (PST)
ARC-Seal i=1; a=rsa-sha256; d=mailchannels.net; s=arc-2022; cv=none; t=1772450177; b=Dv0c1twmQMbjsdzPspTrolpWJ9VaIKFVAxnbBlWpZWsXC2uUfejYLQEJB6Rol+T+GCcEo+ 05AOn6VUchPmvlLOf0fbo2If1dlhzsWzRjmcQ8FPzv9+/xJgTVsgovNZn8kIn70PItrwZQ cjiusL7PTWJasRcyJCY2aP+awRRLURmVx5s73bwhgvHP20IvDrT+JlvurzJkBg341O3gKz PmRQc+lTHpz5KpSzgamTycjsID8HPncgD6TkLIgTzigS0kAimwDrU1vj26LNUH0L/gkPMh u5ByvBJqFOzkl+F/WVvkfgc+Ow+gyl0gspvNqq3fOpQWph8S3WWFMakm6iFYZA==
ARC-Message-Signature i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1772450177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-unsubscribe: dkim-signature; bh=UVz4ftF+XZCXr3eJB3+9ZFtmTyGsHyAu6nePdzh1lvg=; b=VifjmPx1CLVNarCD0kfPD+9TLbv3kUuGHNABdW2y+sfEAX+b4pOr8MFsThvKp+WubrST4d nKBf3QlSNmpO8LoMrZZBbgnvWUXDgDVVPS21DsiTSoIRJkGhQqYzcfir0EdYEn1ZpdGRB1 6yT5TdTy/a50btNC3WsSwsz6awDh6GXmny5popLCE8Pngw3+rb6vrH5HSxLyTR4N4fNEPx o7ivfY64ViO4cjyGcGykl24wjxQlh8BOpoSAEUD2rEr4cvN8Gg1R8kmvesGvJLxQuIZcT0 Ed3JgY5M0hvIwQEoSK8p+ihLO6soNw+rKJRuAOwUg5lcpM+KSK/d+p0YWD9niw==
ARC-Authentication-Results i=1; inbound-rspamd-59f67b687b-69r9s; none
X-Message-ID 4V99aOWaAncIm1qnfTVwEKM2
Received from out-20.smtp.github.com (out-20.smtp.github.com [192.30.252.203]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.107.84.95 (trex/7.1.3); Mon, 02 Mar 2026 11:16:17 +0000
Authentication-Results inbound.mailchannels.net; spf=pass smtp.mailfrom=noreply@github.com; dkim=pass header.d=github.com; dmarc=pass (policy=reject; pct=100; status=pass); arc=none
Received-SPF pass (dmarc-service-78968d7585-572vh: domain of github.com designates 192.30.252.203 as permitted sender) client-ip=192.30.252.203; envelope-from=noreply@github.com; helo=out-20.smtp.github.com;
Received from github.com (hubbernetes-node-4d20cb2.va3-iad.github.net [10.48.221.61]) by smtp.github.com (Postfix) with ESMTPA id 891623C10B1 for <perl5-changes@perl.org>; Mon, 2 Mar 2026 03:16:16 -0800 (PST)
Date Mon, 02 Mar 2026 03:16:16 -0800
To perl5-changes@perl.org
Message-ID <Perl/perl5/push/refs/heads/blead/3ecc21-de3c4f@github.com> (permalink)
Subject [Perl/perl5] 019cd2: Split tests for B::Deparse refaliasing into two se...
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-GitHub-Recipient-Address perl5-changes@perl.org
X-Auto-Response-Suppress All
Original-From Paul Evans <noreply@github.com>
Reply-To Paul Evans <noreply@github.com>,
Approved news@nntp.perl.org
From perl5-changes@perl.org (Paul Evans via perl5-changes)

Show key headers only | View raw


  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 019cd2fc13f3da151d32c39af0a78cc2c728ee95
      https://github.com/Perl/perl5/commit/019cd2fc13f3da151d32c39af0a78cc2c728ee95
  Author: Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
  Date:   2026-03-02 (Mon, 02 Mar 2026)

  Changed paths:
    M lib/B/Deparse.t

  Log Message:
  -----------
  Split tests for B::Deparse refaliasing into two sections

The previous giant list was too big to debug if a single test case
happened to fail


  Commit: de3c4f2f659a682aafcac9e1c03e461fdb873e20
      https://github.com/Perl/perl5/commit/de3c4f2f659a682aafcac9e1c03e461fdb873e20
  Author: Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
  Date:   2026-03-02 (Mon, 02 Mar 2026)

  Changed paths:
    M cop.h
    M inline.h
    M op.c
    M pp_ctl.c

  Log Message:
  -----------
  Implement `foreach \LEXICAL (...)` without lvref magic

Previously, commit 091a08d8047 made a more efficient implemention of
`foreach` loops where the iteration variable was declared using
`\my $VAR`. A cornercase of that logic was missed, wherein the iteration
variable was *previously* declared as a lexical before the foreach loop
itself. That resulted in an optree using `OP_SREFGEN` on `OP_LVREF`
directly, rather than on a `OP_PADxV`, so a case was missed.

By covering this case here as well, we now manage to remove any uses of
`PERL_MAGIC_lvref` to implement `foreach` loops on refaliased lexicals.
The code to implement those now-dead cases has been removed and replaced
with an `assert(mg->mg_obj)`, to cover the still-remaining case of
iteration over a refalias to a package variable. Those may be covered in
a later commit.


Compare: https://github.com/Perl/perl5/compare/3ecc21b425cd...de3c4f2f659a

To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications

Back to perl.perl5.changes | Previous | Next | Find similar


Thread

[Perl/perl5] 019cd2: Split tests for B::Deparse refaliasing into two se... perl5-changes@perl.org (Paul Evans via perl5-changes) - 2026-03-02 03:16 -0800

csiph-web