From 6d366f0ae53669a17de96db0094ef62217b60f1b Mon Sep 17 00:00:00 2001 From: happi Date: Fri, 3 May 2013 16:25:37 +0200 Subject: Make term_to_binary yield (trap). --- erts/emulator/beam/erl_process.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'erts/emulator/beam/erl_process.h') diff --git a/erts/emulator/beam/erl_process.h b/erts/emulator/beam/erl_process.h index 865ac6c43f..fca83dba8f 100644 --- a/erts/emulator/beam/erl_process.h +++ b/erts/emulator/beam/erl_process.h @@ -792,6 +792,11 @@ struct process { ErlMessageQueue msg; /* Message queue */ + Eterm *extra_root; /* Extra root set, used e.g. by yielding bifs. */ + Uint extra_root_sz; /* Size of extra root set. */ + ErtsAlcType_t extra_root_allocator; /* Type of memory allocator used, + used for freeing extra_root if process dies. */ + union { ErtsBifTimer *bif_timers; /* Bif timers aiming at this process */ void *terminate; -- cgit v1.2.3