be on whether the SV had a body before upgrading. As was, SVt_RV would
needlessly have re-zeroed memory.
p4raw-id: //depot/perl@32701
AvMAX(sv) = -1;
AvFILLp(sv) = -1;
AvREAL_only(sv);
- if (old_type >= SVt_RV) {
+ if (old_type_details->body_size) {
AvALLOC(sv) = 0;
} else {
/* It will have been zeroed when the new body was allocated.
HvSHAREKEYS_on(sv); /* key-sharing on by default */
#endif
HvMAX(sv) = 7; /* (start with 8 buckets) */
- if (old_type >= SVt_RV) {
+ if (old_type_details->body_size) {
HvFILL(sv) = 0;
} else {
/* It will have been zeroed when the new body was allocated.