Lines Matching full:child
1534 a child of B. (The lines represent pointers between parent and child.
1557 (1) For through the entire set of known monitors, search all child
1702 * Determine whether "child" appears in the list of objects associated
1706 static bool objectInChildList(const Object* parent, Object* child)
1714 return expandObjHas(&LW_MONITOR(lock)->historyChildren, child);
1718 * Print the child list.
1730 * Add "child" to the list of children in "parent", and add "parent" to
1731 * the list of parents in "child".
1733 static void linkParentToChild(Object* parent, Object* child)
1737 assert(IS_LOCK_FAT(&child->lock));
1738 assert(parent != child);
1742 assert(!expandObjHas(&mon->historyChildren, child));
1743 expandObjAddEntry(&mon->historyChildren, child);
1745 mon = LW_MONITOR(child->lock);
1752 * Remove "child" from the list of children in "parent".
1754 static void unlinkParentFromChild(Object* parent, Object* child)
1758 assert(IS_LOCK_FAT(&child->lock));
1759 assert(parent != child);
1763 if (!expandObjRemoveEntry(&mon->historyChildren, child)) {
1764 LOGW("WARNING: child %p not found in parent %p\n", child, parent);
1766 assert(!expandObjHas(&mon->historyChildren, child));
1769 mon = LW_MONITOR(child->lock);
1771 LOGW("WARNING: parent %p not found in child %p\n", parent, child);
1855 const Object* child = expandBufGetEntry(pList, i);
1856 u4 lock = child->lock;
1859 if (!traverseTree(self, child)) {
1960 LOGVV("fattening parent %p f/b/o child %p (recur=%d)\n",
2017 * We're removing "child" from existence. We want to pull all of
2018 * child's children into "parent", filtering out duplicates. This is
2021 * This does not modify "child", which might have multiple parents.
2023 static void mergeChildren(Object* parent, const Object* child)
2028 assert(IS_LOCK_FAT(&child->lock));
2029 mon = LW_MONITOR(child->lock);
2062 * in each child to speed up GC.
2069 LOGVV("removing child %p from parent %p\n", obj, parent);
2080 * - merge all of our children into the parent's child list (creates
2081 * a two-way link between parent and child)
2082 * - remove ourselves from the parent's child list
2095 LOGW("WARNING: child %p not found in parent %p\n", obj, parent);
2103 * For every child of this object:
2104 * - remove ourselves from the child's parent list
2108 Object* child = expandBufGetEntry(pList, i);
2109 Monitor* childMon = LW_MONITOR(child->lock);
2112 child %p\n", obj, child);