This commit is contained in:
dcode
2019-03-27 14:43:35 +01:00
parent 3146f8f9e0
commit bb1609c9ea
91 changed files with 6426 additions and 11009 deletions

View File

@ -7,7 +7,7 @@ Common
------
* **__ref_collect**()<br />
Triggers a full garbage collection cycle.
Triggers a full garbage collection cycle. Also indicates the presence of a GC.
Tracing
-------
@ -24,14 +24,15 @@ Tracing
Reference counting
------------------
* **__ref_register**(ref: `usize`)<br />
Sets up a new reference. Implementation is optional for reference counting GCs.
* **__ref_retain**(ref: `usize`)<br />
Retains a reference, usually incrementing RC.
* **__ref_release**(ref: `usize`)<br />
Releases a reference, usually decrementing RC.
Reference counting may also implement `__ref_register` if necessary.
Typical patterns
----------------