Crate orc [] [src]

Threadsafe garbage collector (the Orc<T> type).

The Orc type provides shared ownership over an immutable value that is in stored in a preallocated memory area. As soon as the last reference to a stored value is gone the value is dropped. In addition to that cycles are reclaimed if the space is needed for new allocations.

While there may be some useful applications in pure rust programms for this of memory managment scheme, the intended use case is garbage collection for unityped (speak: dynamic) languages written in and tightly integrated with rust.

Structs

Orc

A pointer into an OrcHeap. Can be shared across threads.

OrcHeap