aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2013-10-15 13:06:20 +0200
committerHenrik Nord <[email protected]>2013-12-02 15:20:50 +0100
commitf8c1256fc624ef79aa4f25574278c0cd2f9f1106 (patch)
treecdd2392a71267a5e9f0701ac61c2a2377fe26152 /erts/emulator
parent09152f810b04715785cb0437f9bc0ce42bb0f85f (diff)
downloadotp-f8c1256fc624ef79aa4f25574278c0cd2f9f1106.tar.gz
otp-f8c1256fc624ef79aa4f25574278c0cd2f9f1106.tar.bz2
otp-f8c1256fc624ef79aa4f25574278c0cd2f9f1106.zip
Compile in_heapfrag() only in debug mode
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/erl_message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_message.c b/erts/emulator/beam/erl_message.c
index 325d77e911..6a9030fd99 100644
--- a/erts/emulator/beam/erl_message.c
+++ b/erts/emulator/beam/erl_message.c
@@ -46,10 +46,12 @@ ERTS_SCHED_PREF_QUICK_ALLOC_IMPL(message,
+#ifdef DEBUG
static ERTS_INLINE int in_heapfrag(const Eterm* ptr, const ErlHeapFragment *bp)
{
return ((unsigned)(ptr - bp->mem) < bp->used_size);
}
+#endif
void