aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-11-18 17:58:14 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-11-18 18:00:24 +0100
commit5d764f988ab09326d24e39a172083b09ab364c6c (patch)
treebf899001ecf0427769b193d6c1a61054353629ce /erts/emulator/beam/erl_process.c
parent3f29cf1f72f50d20ce1864f76e1a298602429ca4 (diff)
downloadotp-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/erl_process.c')
-rw-r--r--erts/emulator/beam/erl_process.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index a691a3c773..23616f36bf 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -10748,7 +10748,6 @@ erl_create_process(Process* parent, /* Parent of process (default group leader).
erts_aint32_t state = 0;
erts_aint32_t prio = (erts_aint32_t) PRIORITY_NORMAL;
#ifdef SHCOPY_SPAWN
- unsigned shflags = 0; /* could be taken from so->flags, if necessary */
erts_shcopy_t info;
INITIALIZE_SHCOPY(info);
#endif
@@ -10804,7 +10803,7 @@ erl_create_process(Process* parent, /* Parent of process (default group leader).
BM_SWAP_TIMER(system,size);
#ifdef SHCOPY_SPAWN
- arg_size = copy_shared_calculate(args, &info, shflags);
+ arg_size = copy_shared_calculate(args, &info);
#else
arg_size = size_object(args);
#endif
@@ -10886,7 +10885,7 @@ erl_create_process(Process* parent, /* Parent of process (default group leader).
BM_START_TIMER(system);
BM_SWAP_TIMER(system,copy);
#ifdef SHCOPY_SPAWN
- p->arg_reg[2] = copy_shared_perform(args, arg_size, &info, &p->htop, &p->off_heap, shflags);
+ p->arg_reg[2] = copy_shared_perform(args, arg_size, &info, &p->htop, &p->off_heap);
DESTROY_SHCOPY(info);
#else
p->arg_reg[2] = copy_struct(args, arg_size, &p->htop, &p->off_heap);