You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
144118: memo: release replacer closure during Memo.Detach r=mgartner a=michae2
In #120875 we added a replacer closure to the memo, so that we could call back into `norm.Factory.Replace` from within
`statisticsBuilder.factorOutVirtualCols`, which only has access to the memo and not the factory. This closure, however, means that the memo could potentially prevent GC of, or have an invalid reference to the factory after detachment. We shouldn't need to run the statistics builder on this memo after detaching from the factory (we shouldn't be constructing any new expressions in it) so let's go ahead and release the reference.
Epic: None
Release note: None
Co-authored-by: Michael Erickson <[email protected]>
0 commit comments