remove self-recursion of ConnectionGraph::find_inst_mem()

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 18, 19
    • Component/s: hotspot

      This is a follow-up task of JDK-8276219.

      ConnectionGraph::find_inst_mem() contains a self-recursion for MergeMemNode. It drills into one input of mergenode and tries to locate the memory node which has the exact alias_idx. Once it returns, the result will be same from recursion. Therefore, it's not necessary to use self recursion in this case. we can reset the initial state of this function and respin.

      We can use a collection to remember all MergeMem Nodes and update them after then.

            Assignee:
            Xin Liu
            Reporter:
            Xin Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: