Lines Matching refs:reference
4 Finding the source of task reference count leaks.
9 Tasks in XNU are reference counted. When a task is created it starts with two
11 of the task this reference count is modified, for example when a thread is
12 created it increments the reference count and when it exits that count drops.
13 When a reference count reaches zero, the task is freed.
15 To grab a reference:
20 To release a reference:
26 _leaks_ commonly occur. This happens when a reference is taken but never
37 hierarchical. To help with debugging the following task reference group
60 kext will be dynamically assigned a reference group as needed (if there's
63 The exact hierarchy of task references (specifically what per-task reference
66 Task reference groups can be explored in `lldb` as follows:
83 Display a task's reference groups:
92 The reference group hierarchy for a specific group can be displayed as follows:
102 Reference groups are normally disabled, but task reference group statistics
103 *are* enabled by default (for `RELEASE` builds, reference groups are not available
104 at all). Backtrace logging for all groups is disabled, including task reference
105 groups. To enable backtrace logging and reference group statistics, the `rlog`
106 boot-arg must be used. Backtrace logging for task reference groups is only
111 To enable statistics for all reference groups and backtrace logging for the
112 *task_external* reference group in particular: