Erl_interface's fixed term allocator

Vance Shipley vances@REDACTED
Sat Oct 16 23:45:29 CEST 1999


My C program which interfaces to Erlang using the erl_interface
library keeps failing hours or days after startup with:

	<ERROR> erl_alloc_eterm:  Failed to allocate more memory
	: Insufficient or invalid memory

I use erl_free_term() to free each ETERM that I allocate.  Some
investigation suggests that this is not enough.  Apparently this
just moves the memory to a "freelist".

Do I have to empty the freelist myself with erl_eterm_release()?
If so when and how often should I do so?

	-Vance



More information about the erlang-questions mailing list