[erlang-questions] Could NIFs keep pointers to Erlang terms without copying them?

zxq9 zxq9@REDACTED
Wed Feb 8 11:04:06 CET 2017

On 2017年2月8日 水曜日 08:23:54 Dmytro Lytovchenko wrote:
> Modifying the way how garbage collect algorithm calculates the root set
> will do what you want. Now the trick is that GC runs per process and nifs
> are organized independently. There must be a way for a process to know
> which nif holds something from its heap.

...which seems to hint that the underlying problem would be better handled
by a non-NIF solution.


More information about the erlang-questions mailing list