<div dir="ltr">No, the binary will not be moved unless there is some scan algorithm implemented in GC to visit all process heaps, all registers and all stacks and possibly all ETS tables and update all pointers to a moved binary. Which i really doubt it is happening. So no, it will never be moved until garbage collected.</div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-22 0:10 GMT+01:00 Frank Muller <span dir="ltr"><<a href="mailto:frank.muller.erl@gmail.com" target="_blank">frank.muller.erl@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi guys</div><div dir="auto"><br></div><div dir="auto">Suppose I’ve a big binary (35MB) in the state of my gen_server process X.</div><div dir="auto"><br></div><div dir="auto">This binary is never shared with any other process, it’s never updated, and stays there for lifetime of process X.</div><div dir="auto"><br></div><div dir="auto">Question: internally, may the VM moves this binary around to different memory locations if needed? Or not because this binary is never shared/updated ?</div><span class="HOEnZb"><font color="#888888"><div dir="auto"><br></div><div dir="auto">/Frank</div>
</font></span><br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>