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
Good catch! At the moment, these variables are actually supposed to be stateless, but as they are reusing the stateful ObjectEntity, this is obviously not the case. I will think about how to improve here, maybe an "immutable" flag for now.
Expected Behavior
When rollup watch restart, the modules of last time will be released.
Actual Behavior
But it will be not. these modules are still keep by ARRAY_PROTOTYPE.
So it cause a memory leak.
I take memory snapshot before and after watch restart. Please see the picture below:
I read the code of ARRAY_PROTOTYPE, then find some code maybe cause memory leak.
expressionsToBeDeoptimizedByKey
&thisParametersToBeDeoptimized
ARRAY_PROTOTYPE
is a global variable, so the propertyexpressionsToBeDeoptimizedByKey
andthisParametersToBeDeoptimized
never clear.The text was updated successfully, but these errors were encountered: