Interface UnadoptableNode


public interface UnadoptableNode
Marks a node unadoptable, this means that the parent pointer will never be written by the Truffle framework. If nodes need to be statically shared then they must not be adoptable, because otherwise the parent reference might cause a memory leak. If a node is not adoptable then then it is guaranteed that the parent pointer remains null at all times, even if the node is tried to be adopted by a parent.

Node that unadoptable nodes should usually also be annotated with DenyReplace.

Since:
24.1
See Also: