diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-11-18 17:58:14 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-11-18 18:00:24 +0100 |
commit | 5d764f988ab09326d24e39a172083b09ab364c6c (patch) | |
tree | bf899001ecf0427769b193d6c1a61054353629ce /erts/emulator/beam/beam_debug.c | |
parent | 3f29cf1f72f50d20ce1864f76e1a298602429ca4 (diff) | |
download | otp-5d764f988ab09326d24e39a172083b09ab364c6c.tar.gz otp-5d764f988ab09326d24e39a172083b09ab364c6c.tar.bz2 otp-5d764f988ab09326d24e39a172083b09ab364c6c.zip |
Refactor sharing preserved copy flags
The TMPBUF option is no longer needed due to is_literal test and NONE
was only used for initial debugging. So we remove the entire option.
Diffstat (limited to 'erts/emulator/beam/beam_debug.c')
-rw-r--r-- | erts/emulator/beam/beam_debug.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/erts/emulator/beam/beam_debug.c b/erts/emulator/beam/beam_debug.c index b007d000bf..e37bd4d78c 100644 --- a/erts/emulator/beam/beam_debug.c +++ b/erts/emulator/beam/beam_debug.c @@ -97,20 +97,14 @@ erts_debug_copy_shared_1(BIF_ALIST_1) Eterm* hp; Eterm copy; erts_shcopy_t info; -#ifdef SHCOPY_DISABLE - extern int disable_copy_shared; -#endif INITIALIZE_SHCOPY(info); - size = copy_shared_calculate(term, &info, 0); + size = copy_shared_calculate(term, &info); if (size > 0) { hp = HAlloc(p, size); } - copy = copy_shared_perform(term, size, &info, &hp, &p->off_heap, 0); + copy = copy_shared_perform(term, size, &info, &hp, &p->off_heap); DESTROY_SHCOPY(info); -#ifdef SHCOPY_DISABLE - disable_copy_shared = 0; -#endif BIF_RET(copy); } |