7024568: Very long method resolution causing OOM errorSummary: Resolve.findMethod scans same receiver type more than once in certain inheritance graphsReviewed-by: jjgContributed-by: jan.lahoda@oracle.com