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
Each time you define a variable in the shell, it adds a new value to the environment. If it has the same name as an existing variable, the old variable is not accessible, but it is still in the environment (implemented as a linked-list) and cannot be garbage-collected by the JVM.
I suspect that there are cases, such as where you define the same variable thousands of time, which have memory leaks. We should fix those.
The linked-list environment is good in general, but we need to find a way to purge it, without paying an O(n) cost to check the whole environment every time.
The text was updated successfully, but these errors were encountered:
Each time you define a variable in the shell, it adds a new value to the environment. If it has the same name as an existing variable, the old variable is not accessible, but it is still in the environment (implemented as a linked-list) and cannot be garbage-collected by the JVM.
I suspect that there are cases, such as where you define the same variable thousands of time, which have memory leaks. We should fix those.
The linked-list environment is good in general, but we need to find a way to purge it, without paying an O(n) cost to check the whole environment every time.
The text was updated successfully, but these errors were encountered: