Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Apr 4, 2024
1 parent dc4c1b2 commit 524fd18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sv.c
Original file line number Diff line number Diff line change
Expand Up @@ -4912,10 +4912,11 @@ Perl_sv_setsv_cow(pTHX_ SV **pdsv, SV *ssv)
sv_dump(dsv);
}
#endif
if (!CHECK_COWBUF_THRESHOLD(cur, len)
|| ! CHECK_COW_THRESHOLD(cur, len)) {
if (!SvIsCOW(ssv) &&
(!CHECK_COWBUF_THRESHOLD(cur, len)
|| ! CHECK_COW_THRESHOLD(cur, len))) {
DEBUG_C(PerlIO_printf(Perl_debug_log,
"Fast copy on write: Sizes %zu/%zu not appropriate to COW\n", cur, len));
"Fast copy on write: Sizes %zu/%zu %p/%p not appropriate to COW\n", cur, len, dsv ? (void *)SvPVX(dsv) : (void *)0, (void*)SvPVX(ssv)));
return FALSE;
}
if (dsv) {
Expand Down

0 comments on commit 524fd18

Please sign in to comment.