summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2018-04-26 11:46:22 +0100
committerDavid Mitchell <davem@iabyn.com>2018-04-26 11:46:22 +0100
commitd8306453385a4991e40b4738982bf9617b6c1ccf (patch)
treef8083043183e2f3960a91d4f8eae78dec0735ddf /pp_sort.c
parentd98f51adb895010fdfbe73640d0f92bb48669f24 (diff)
downloadperl-d8306453385a4991e40b4738982bf9617b6c1ccf.tar.gz
Revert "Strengthen weak refs when sorting in-place"
This reverts commit f6107ca24b4cf22dcf7fd69d65612ad718c48fca. See RT #132142. For now, re-introduce the bug that fails to convert weak refs to strong refs when sorting in place. This is commit 2 of 2.
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/pp_sort.c b/pp_sort.c
index 8be778e2f2..b4a9dd91e7 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -1094,9 +1094,6 @@ PP(pp_sort)
base[i] = newSVsv(sv);
else
SvREFCNT_inc_simple_void_NN(sv);
-
- if (SvWEAKREF(sv))
- sv_rvunweaken(sv);
}
av_clear(av);
if (max > 0) {