aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_message.h
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-03-19 14:08:16 +0100
committerLukas Larsson <[email protected]>2019-03-25 16:34:11 +0100
commitc18f95e787125f8be5a5b1731b896f7008a5d5db (patch)
treec25d4818b0b8eeb6e91040ff96f3f9f584976755 /erts/emulator/beam/erl_message.h
parent178721284f342e9c8408c336741e73b61162b138 (diff)
downloadotp-c18f95e787125f8be5a5b1731b896f7008a5d5db.tar.gz
otp-c18f95e787125f8be5a5b1731b896f7008a5d5db.tar.bz2
otp-c18f95e787125f8be5a5b1731b896f7008a5d5db.zip
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.
Diffstat (limited to 'erts/emulator/beam/erl_message.h')
-rw-r--r--erts/emulator/beam/erl_message.h2
1 files changed, 2 insertions, 0 deletions
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;
}