Skip to content

Commit

Permalink
add manual mem management note
Browse files Browse the repository at this point in the history
  • Loading branch information
yilabs committed Jun 5, 2022
1 parent 5aafdd6 commit 1605877
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ Instead, rewrite them as:
queue.push(dSideRefHolder_toPreventGC_BeforePoped_Var);
```

Another way is manually (without GC) allocate the object, so GC will not scan them (and their fields) for collection.

## Known issue:

* the queue_umm.h will leak one lfds711_queue_umm_element upon queue_umm_destroy() call.
Expand Down

0 comments on commit 1605877

Please sign in to comment.