Commit 9e102b2
committed
Revert "Perl_op_convert_list - only short circuit CONST OPs with an IsCOW SV"
This reverts commit 80d3e79.
That commit was always intended as a stopgap to be replaced by
b1f270f.
The history behind this was as follows:
* GH#22116 - a902d92 - short-circuited constant folding on CONST OPs,
as this should be unnecessary. However, Dave Mitchell noticed that it
had the inadvertent effect of disabling COW on SVs holding UTF8 string
literals (e.g. `"\x{100}abcd"`).
* b1f270f always seemed like the
best fix, but given the apparent proximity to the 5.42 release date
that commit seemed to be too big a change.
* GH#23296 brought in the now-reverted commit as a stop gap that
retained some of the older, now-unnecessary behaviour.1 parent 4a38ddc commit 9e102b2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5582 | 5582 | | |
5583 | 5583 | | |
5584 | 5584 | | |
5585 | | - | |
| 5585 | + | |
5586 | 5586 | | |
5587 | 5587 | | |
5588 | 5588 | | |
| |||
0 commit comments