[erlang-questions] Internal compiler atoms
Thu Jan 17 21:25:19 CET 2019
If you compile your module from core erlang (cerl) forms and pass
'from_core' option to compile:forms/2 call, compiler will skip many passes
including core pass, which calls v3_call:module/2 and will only parse the
core forms and run core_passes.
Thus you can leap list_to_atom/1 calls that are invoked by v3_call:module/2
You can see the link below for the compile call and how cerl is used:
On Thu, Jul 27, 2017 at 4:19 PM Håkan Mattsson <hawk.mattsson@REDACTED>
> I am trying to compile a
> module from a list of forms
> , but it seems
> like the compiler internally generates lots of new atoms:
> no more index entries in atom_tab (max=1048576)
> Crash dump is being written to: erl_crash.dump...
> In this case the compiler itself generated more than 300K atoms while
> compiling my forms.
> Why is the atoms generated?
> Is this anything that can be disabled?
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions