We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb246bb commit 08b6158Copy full SHA for 08b6158
sv.c
@@ -6305,6 +6305,11 @@ Perl_newSVpvz(pTHX_ const STRLEN len)
6305
{
6306
SV *sv = newSV_type(SVt_PV);
6307
sv_grow_fresh(sv, len + 1);
6308
+
6309
+ /* Some ASSUMEs which may help the compiler avoid unnecessary work */
6310
+ ASSUME(SvCUR(sv) == 0);
6311
+ ASSUME(SvFLAGS(sv) == SVt_PV);
6312
+ ASSUME(!TAINT_get);
6313
(void) sv_setpv_freshbuf(sv);
6314
6315
return sv;
0 commit comments