[erlang-questions] Dynamic code loading and hotswap behaviour

Rapsey rapsey@REDACTED
Tue Nov 16 17:12:33 CET 2010


It reloads anyway and the mechanisms apply.


Sergej

On Tue, Nov 16, 2010 at 5:00 PM, Alessandro Sivieri <
alessandro.sivieri@REDACTED> wrote:

> Hi all,
>
> I'm using the function code:load_binary in an application, for dynamically
> loading bytecode; I know that the hotswap mechanisms of Erlang support at
> most two versions of the same module, and if a third is loaded, the oldest
> is truncated and any process using its functions is terminated: now, the
> dynamic loading does some kind of version check of a module? I mean, if I
> load the same version three times, do the hotswap mechanisms apply anyway
> or
> does the implementation recognize that the code is the same, so there is no
> need to reload it?
>
> --
> Sivieri Alessandro
> alessandro.sivieri@REDACTED
> http://www.chimera-bellerofonte.eu/
> http://www.poul.org/
>


More information about the erlang-questions mailing list