关于HashMap源码中的removeTreeNode方法

final void removeTreeNode(HashMap<K,V> map, Node<K,V>[] tab,
                          boolean movable) {
    int n;
    if (tab == null || (n = tab.length) == 0)
        return; 
    int index = (n - 1) & hash; 
    TreeNode<K,V> first = (TreeNode<K,V>)tab[index], root = first, rl;
    TreeNode<K,V> succ = (TreeNode<K,V>)next, pred = prev;
    if (pred == null)
        tab[index] = first = succ;
    else
        pred.next = succ;
    if (succ != null)
        succ.prev = pred; 
    if (first == null) 
        return; 
    if (root.parent != null)
        root = root.root();

代码太长,直到粘贴到的问题处

请问这个什么情况下会进入该条件

if (root.parent != null)
        root = root.root();

提前感谢你的回答!

解决了吗? 我也不知道为啥要加这一句。 按道理正常使用不会有这种情况