Expand description
Inline refcount operations for v2 heap objects.
These free functions operate on raw *const HeapHeader pointers, suitable
for use from JIT-generated code and FFI. The caller is responsible for
pointer validity.
Functions§
- v2_
get_ ⚠refcount - Get the current reference count of a v2 heap object.
- v2_
release ⚠ - Decrement the reference count of a v2 heap object.
Returns
trueif the count reached zero (caller must deallocate). - v2_
retain ⚠ - Increment the reference count of a v2 heap object.