diff options
author | Sverker Eriksson <[email protected]> | 2016-12-21 17:41:43 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-01-04 20:09:16 +0100 |
commit | fb4e0f8726d2e3033164fe6e44c49351c6b641de (patch) | |
tree | c016f6f674000fb292dfe13df1a5200968a57a8f /erts/emulator/beam/erl_gc.h | |
parent | b60bdd762bc2f42b3e4eebf7256e7aa9e79dced1 (diff) | |
download | otp-fb4e0f8726d2e3033164fe6e44c49351c6b641de.tar.gz otp-fb4e0f8726d2e3033164fe6e44c49351c6b641de.tar.bz2 otp-fb4e0f8726d2e3033164fe6e44c49351c6b641de.zip |
erts: Make erts_dbg_within_proc available
for debug assertions.
Diffstat (limited to 'erts/emulator/beam/erl_gc.h')
-rw-r--r-- | erts/emulator/beam/erl_gc.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_gc.h b/erts/emulator/beam/erl_gc.h index 54ea9ca3c0..9684478c1b 100644 --- a/erts/emulator/beam/erl_gc.h +++ b/erts/emulator/beam/erl_gc.h @@ -69,10 +69,6 @@ do { \ while (nelts--) *HTOP++ = *PTR++; \ } while(0) -#if defined(DEBUG) || defined(ERTS_OFFHEAP_DEBUG) -int within(Eterm *ptr, Process *p); -#endif - #define ErtsInYoungGen(TPtr, Ptr, OldHeap, OldHeapSz) \ (!erts_is_literal((TPtr), (Ptr)) \ & !ErtsInArea((Ptr), (OldHeap), (OldHeapSz))) @@ -157,5 +153,8 @@ void erts_offset_heap(Eterm*, Uint, Sint, Eterm*, Eterm*); void erts_free_heap_frags(struct process* p); Eterm erts_max_heap_size_map(Sint, Uint, Eterm **, Uint *); int erts_max_heap_size(Eterm, Uint *, Uint *); +#if defined(DEBUG) || defined(ERTS_OFFHEAP_DEBUG) +int erts_dbg_within_proc(Eterm *ptr, Process *p, Eterm* real_htop); +#endif #endif /* __ERL_GC_H__ */ |