[Perl/perl5] 4ef007: sv_set_undef(): preserve the SVs_TEMP flag

[email protected] (Tony Cook via perl5-changes) Tue, 04 Aug 2026 16:16:02 -0700
Newsgroups perl.perl5.changes
Message-ID <Perl/perl5/push/refs/heads/blead/[email protected]>
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 4ef00774b6284a87704070aa29066fa2da1457c6
      https://github.com/Perl/perl5/commit/4ef00774b6284a87704070aa29066fa2da1457c6
  Author: Tony Cook <[email protected]>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

  Changed paths:
    M ext/XS-APItest/APItest_misc_runtime.xs
    M ext/XS-APItest/t/sv.t
    M sv.c

  Log Message:
  -----------
  sv_set_undef(): preserve the SVs_TEMP flag

sv_set_undef() would clear the SVs_TEMP and other flags if the SV was
SvTYPE() <= SVt_IV, breaking code that checks for SVs_TEMP, suah as
constant folding.

Found while trying to replace sv_setsv(TARG, &PL_sv_undef) with
sv_set_undef(TARG) and failing.


  Commit: 7489fba79fd15a1fe6c610ef274f44ce8ba557af
      https://github.com/Perl/perl5/commit/7489fba79fd15a1fe6c610ef274f44ce8ba557af
  Author: Tony Cook <[email protected]>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

  Changed paths:
    M pod/perldelta.pod

  Log Message:
  -----------
  perldelta for preserve SVs_TEMP flag in sv_set_undef()


Compare: https://github.com/Perl/perl5/compare/a306dbbe0570...7489fba79fd1

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