Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8280541

remove self-recursion of ConnectionGraph::find_inst_mem()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 18, 19
    • 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.

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

              Created:
              Updated:
              Resolved: