Commit 5cf6593
committed
Perl_newSVpvn_share - minor changes to help the compiler.
This commit:
* swaps `SvLEN_set(sv, 0)` for an assertion of this default value.
* Moves `SvCUR_set` and the (now-combined) flag assignment before the
call to `sharepvn`, giving the compiler a better chance to combine
them with the initialization (likely) inlined from `newSV_type(SVt_PV)`.1 parent fb1dc98 commit 5cf6593
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10379 | 10379 | | |
10380 | 10380 | | |
10381 | 10381 | | |
10382 | | - | |
| 10382 | + | |
| 10383 | + | |
10383 | 10384 | | |
10384 | | - | |
10385 | | - | |
10386 | | - | |
10387 | | - | |
10388 | | - | |
| 10385 | + | |
| 10386 | + | |
10389 | 10387 | | |
10390 | 10388 | | |
10391 | 10389 | | |
| |||
0 commit comments