aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/global.h
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-06-18 17:03:48 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-06-24 16:22:31 +0200
commitd6712b1c54de471beb1784bb329ea217767f70ff (patch)
treeffa3f225fd0592d780226222adecee7126cf8d4c /erts/emulator/beam/global.h
parentba020bd06c34eaf5b450495a852f31357ef042b5 (diff)
downloadotp-d6712b1c54de471beb1784bb329ea217767f70ff.tar.gz
otp-d6712b1c54de471beb1784bb329ea217767f70ff.tar.bz2
otp-d6712b1c54de471beb1784bb329ea217767f70ff.zip
erts: Reinstate copy_object over-allocation optimization
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r--erts/emulator/beam/global.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h
index 3559f0cd13..870afb414f 100644
--- a/erts/emulator/beam/global.h
+++ b/erts/emulator/beam/global.h
@@ -954,7 +954,9 @@ __decl_noreturn void __noreturn erl_exit_flush_async(int n, char*, ...);
void erl_error(char*, va_list);
/* copy.c */
-Eterm copy_object(Eterm, Process*);
+Eterm copy_object_x(Eterm, Process*, Uint);
+#define copy_object(Term, Proc) copy_object_x(Term,Proc,0)
+
Uint size_object(Eterm);
Eterm copy_struct(Eterm, Uint, Eterm**, ErlOffHeap*);
Eterm copy_shallow(Eterm*, Uint, Eterm**, ErlOffHeap*);