Lines Matching defs:full
217 private static void replaceTreeWork(TreeNode full, TreeNode partial, boolean dir) {
218 boolean canGoLeft = full.left != null && full.left.val > partial.val;
219 boolean canGoRight = full.right != null && full.right.val > partial.val;
222 replaceTreeWork(full.left, partial, !dir);
224 replaceTreeWork(full.right, partial, !dir);
227 full.left = partial;
229 full.right = partial;
231 full.left = partial;
233 full.right = partial;
237 // Given a balanced tree full and a smaller balanced tree partial,
238 // replaces an appropriate subtree of full by partial, taking care
239 // to preserve the shape of the full tree.
241 private static void replaceTree(TreeNode full, TreeNode partial) {
244 replaceTreeWork(full, partial, dir);
251 int full = (int) (n / treeSize);
253 // System.out.println("In oldGenAlloc, doing " + full + " full trees "
255 for (int i = 0; i < full; i++) {