aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-05-07 10:58:10 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-05-07 11:16:12 +0200
commit757d493cff18d0b52aeb1e32d01886551e16fd5d (patch)
tree674a52f31f5ec5fad7b13755d0863ccda1744c69 /erts
parent59baf619a99a3571875556b3402d0a97260ef3ae (diff)
downloadotp-757d493cff18d0b52aeb1e32d01886551e16fd5d.tar.gz
otp-757d493cff18d0b52aeb1e32d01886551e16fd5d.tar.bz2
otp-757d493cff18d0b52aeb1e32d01886551e16fd5d.zip
erts: Fix copy shallow for large Maps
There is no need to take special care of Maps at all since header_arity(hdr) will take care of the normal case via its Map handling.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/copy.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/erts/emulator/beam/copy.c b/erts/emulator/beam/copy.c
index 4d12dae787..850606dd86 100644
--- a/erts/emulator/beam/copy.c
+++ b/erts/emulator/beam/copy.c
@@ -608,11 +608,6 @@ Eterm copy_shallow(Eterm* ptr, Uint sz, Eterm** hpp, ErlOffHeap* off_heap)
erts_refc_inc(&funp->fe->refc, 2);
}
goto off_heap_common;
-
- case MAP_SUBTAG:
- *hp++ = *tp++;
- sz--;
- break;
case EXTERNAL_PID_SUBTAG:
case EXTERNAL_PORT_SUBTAG:
case EXTERNAL_REF_SUBTAG:
@@ -648,7 +643,6 @@ Eterm copy_shallow(Eterm* ptr, Uint sz, Eterm** hpp, ErlOffHeap* off_heap)
}
}
*hpp = hp;
-
return res;
}