develooper Front page | perl.perl5.porters | Postings from January 2003

[PATCH] make Copy On Write work once again

Thread Next
From:
Nicholas Clark
Date:
January 24, 2003 16:29
Subject:
[PATCH] make Copy On Write work once again
Message ID:
20030125002550.GG278@Bagpuss.unfortu.net
There's been a patch recently which reduces the number of functions with
externally visible macros to add Perl_
I missed it at the time, but it happens to remove the externally visible
definition of sv_release_IVX, which breaks ExtUtils/t/Constant.t for
copy on write.

This patch fixes it. Seems to work fine on threaded and unthreaded builds.

Nicholas Clark

--- sv.h.orig	Wed Jan 22 13:43:40 2003
+++ sv.h	Fri Jan 24 23:35:47 2003
@@ -1055,7 +1055,7 @@ otherwise.
 
 #ifdef PERL_COPY_ON_WRITE
 #  define SvRELEASE_IVX(sv)   ((void)((SvFLAGS(sv) & (SVf_OOK|SVf_READONLY|SVf_FAKE)) \
-				&& sv_release_IVX(sv)))
+				&& Perl_sv_release_IVX(aTHX_ sv)))
 #  define SvIsCOW_normal(sv)	(SvIsCOW(sv) && SvLEN(sv))
 #else
 #  define SvRELEASE_IVX(sv)   ((void)SvOOK_off(sv))

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About