From c18f95e787125f8be5a5b1731b896f7008a5d5db Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Tue, 19 Mar 2019 14:08:16 +0100 Subject: erts: erts_factory_proc_init should not set hole marker Setting the hole marker in debug on the entire heap is very slow so instead we do it in erts_produce_heap. --- erts/emulator/beam/erl_message.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'erts/emulator/beam/erl_message.h') diff --git a/erts/emulator/beam/erl_message.h b/erts/emulator/beam/erl_message.h index e5f623a370..5bd25737a7 100644 --- a/erts/emulator/beam/erl_message.h +++ b/erts/emulator/beam/erl_message.h @@ -22,6 +22,7 @@ #define __ERL_MESSAGE_H__ #include "sys.h" +#include "erl_vm.h" #define ERTS_PROC_SIG_QUEUE_TYPE_ONLY #include "erl_proc_sig_queue.h" #undef ERTS_PROC_SIG_QUEUE_TYPE_ONLY @@ -117,6 +118,7 @@ erts_produce_heap(ErtsHeapFactory* factory, Uint need, Uint xtra) } res = factory->hp; factory->hp += need; + INIT_HEAP_MEM(res, need); return res; } -- cgit v1.2.3