diff options
author | Sverker Eriksson <[email protected]> | 2016-10-14 18:48:00 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-11-29 17:52:38 +0100 |
commit | 9a88fc02527063be5096bdf4d49a48b144471553 (patch) | |
tree | 7b0e3ec80f36d1c84d5e0ba144146d5beb1a87a2 /erts/emulator/beam/atom.c | |
parent | 448b12eb58fd72464c70a493ca77af5c5a9a2a09 (diff) | |
download | otp-9a88fc02527063be5096bdf4d49a48b144471553.tar.gz otp-9a88fc02527063be5096bdf4d49a48b144471553.tar.bz2 otp-9a88fc02527063be5096bdf4d49a48b144471553.zip |
erts: Add erts internal secret atom
Diffstat (limited to 'erts/emulator/beam/atom.c')
-rw-r--r-- | erts/emulator/beam/atom.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/beam/atom.c b/erts/emulator/beam/atom.c index b47739059b..2b5ad097a0 100644 --- a/erts/emulator/beam/atom.c +++ b/erts/emulator/beam/atom.c @@ -199,7 +199,7 @@ atom_alloc(Atom* tmpl) static void atom_free(Atom* obj) { - erts_free(ERTS_ALC_T_ATOM, (void*) obj); + ASSERT(obj->slot.index == atom_val(am_ErtsSecretAtom)); } static void latin1_to_utf8(byte* conv_buf, const byte** srcp, int* lenp) @@ -467,6 +467,9 @@ init_atom_table(void) atom_space -= a.len; atom_tab(ix)->name = (byte*)erl_atom_names[i]; } + + /* Hide am_ErtsSecretAtom */ + hash_erase(&erts_atom_table.htable, atom_tab(atom_val(am_ErtsSecretAtom))); } void |