Getting object code directly from code server

Lukas Larsson lukas@REDACTED
Wed Sep 1 09:17:49 CEST 2021


Hello!

No, it is not possible because after the beam code is loaded it is not kept
in memory, and it is not possible to re-create the original beam code from
the loaded code.

So if you need to keep track of dynamically created code, you need to build
something yourself that does that.

Lukas

On Wed, Sep 1, 2021 at 8:57 AM Devon Estes <devon.c.estes@REDACTED> wrote:

> Hello all,
>
> Is it at all possible to get the current object code for a module directly
> from the code server? `code:get_object_code/1` returns information from the
> beam files in the code path and not from the code server itself, and so if
> there are modules that are dynamically compiled and loaded with
> `code:load_binary/3` that doesn't work.
>
> Cheers,
> Devon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210901/7318b4c8/attachment.htm>


More information about the erlang-questions mailing list