[erlang-questions] Read-only binary: does it stay in the same memory location?

Frank Muller frank.muller.erl@REDACTED
Fri Dec 22 00:10:13 CET 2017

Hi guys

Suppose I’ve a big binary (35MB) in the state of my gen_server process X.

This binary is never shared with any other process, it’s never updated, and
stays there for lifetime of process X.

Question: internally, may the VM moves this binary around to different
memory locations if needed? Or not because this binary is never
shared/updated ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20171221/90b0b432/attachment.htm>

More information about the erlang-questions mailing list