fix(ivy): LFrame needs to release memory on leaveView() (#35156)

Root cause is that for perf reasons we cache `LFrame` so that we don't have to allocate it all the time. To be extra fast we clear the `LFrame` on `enterView()` rather that on `leaveView()`. The implication of this strategy is that the deepest `LFrame` will retain objects until the `LFrame` allocation depth matches the deepest object.

The fix is to simply clear the `LFrame` on `leaveView()` rather then on `enterView()`

Fix #35148

PR Close #35156
This commit is contained in:
Misko Hevery
2020-02-04 21:41:49 -08:00
committed by Alex Rickabaugh
parent 27cd01f606
commit b9b512f729
5 changed files with 73 additions and 37 deletions

View File

@ -485,6 +485,9 @@
{
"name": "leaveView"
},
{
"name": "leaveViewLight"
},
{
"name": "locateHostElement"
},

View File

@ -380,6 +380,9 @@
{
"name": "leaveView"
},
{
"name": "leaveViewLight"
},
{
"name": "locateHostElement"
},

View File

@ -911,6 +911,9 @@
{
"name": "leaveView"
},
{
"name": "leaveViewLight"
},
{
"name": "listenerInternal"
},