Correct perldiag entry for sv_replace panic
authorFather Chrysostomos <sprout@cpan.org>
Tue, 22 Nov 2011 22:18:57 +0000 (14:18 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 23 Nov 2011 05:29:34 +0000 (21:29 -0800)
This commit changed the warning to an error and reworded it, but never
updated the docs (this commit completes the TODO):

perl-5.8.0-5715-g30e5c35
commit 30e5c352c9c1099120007e8b6e9318a33d99b3bb
Author: Nicholas Clark <nick@ccl4.org>
Date:   Thu Aug 25 13:46:31 2005 +0000

    Promote the warning about reference miscount in sv_replace to a panic.
    TODO - document the panics

    p4raw-id: //depot/perl@25330

pod/perldiag.pod

index f143b67..725f77f 100644 (file)
@@ -3556,6 +3556,11 @@ data.
 
 (P) Something requested a negative number of bytes of realloc.
 
+=item panic: reference miscount on nsv in sv_replace() (%d != 1)
+
+(P) The internal sv_replace() function was handed a new SV with a
+reference count other than 1.
+
 =item panic: restartop
 
 (P) Some internal routine requested a goto (or something like it), and
@@ -4006,11 +4011,6 @@ parens. In any case, a hash requires key/value B<pairs>.
 (W misc) You have attempted to weaken a reference that is already weak.
 Doing so has no effect.
 
-=item Reference miscount in sv_replace()
-
-(W internal) The internal sv_replace() function was handed a new SV with
-a reference count other than 1.
-
 =item Reference to invalid group 0
 
 (F) You used C<\g0> or similar in a regular expression. You may refer to