diff options
author | Anthony Ramine <[email protected]> | 2013-10-15 13:06:20 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2013-12-02 15:20:50 +0100 |
commit | f8c1256fc624ef79aa4f25574278c0cd2f9f1106 (patch) | |
tree | cdd2392a71267a5e9f0701ac61c2a2377fe26152 | |
parent | 09152f810b04715785cb0437f9bc0ce42bb0f85f (diff) | |
download | otp-f8c1256fc624ef79aa4f25574278c0cd2f9f1106.tar.gz otp-f8c1256fc624ef79aa4f25574278c0cd2f9f1106.tar.bz2 otp-f8c1256fc624ef79aa4f25574278c0cd2f9f1106.zip |
Compile in_heapfrag() only in debug mode
-rw-r--r-- | erts/emulator/beam/erl_message.c | 2 |
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 |