aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/copy.c
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2012-03-09 17:20:49 +0100
committerPatrik Nyblom <[email protected]>2012-03-22 18:16:14 +0100
commit326e098659de187099451bf20a33c3e6181b4141 (patch)
tree7cad8f20c6e3e734c2221c56c77744cae057c7a9 /erts/emulator/beam/copy.c
parent0889c9860f5d07fc87db6bfc287b9a3ddc764aa1 (diff)
downloadotp-326e098659de187099451bf20a33c3e6181b4141.tar.gz
otp-326e098659de187099451bf20a33c3e6181b4141.tar.bz2
otp-326e098659de187099451bf20a33c3e6181b4141.zip
Ifdef all dynamic trace code
Diffstat (limited to 'erts/emulator/beam/copy.c')
-rw-r--r--erts/emulator/beam/copy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/copy.c b/erts/emulator/beam/copy.c
index 4ee60807d9..2c355fadfa 100644
--- a/erts/emulator/beam/copy.c
+++ b/erts/emulator/beam/copy.c
@@ -60,12 +60,14 @@ copy_object(Eterm obj, Process* to)
Eterm* hp = HAlloc(to, size);
Eterm res;
+#ifdef USE_VM_PROBES
if (DTRACE_ENABLED(copy_object)) {
DTRACE_CHARBUF(proc_name, 64);
erts_snprintf(proc_name, sizeof(proc_name), "%T", to->id);
DTRACE2(copy_object, proc_name, size);
}
+#endif
res = copy_struct(obj, size, &hp, &to->off_heap);
#ifdef DEBUG
if (eq(obj, res) == 0) {