Deleted members are not dereferenced #274
Labels
Performance
Issues related to the performance of the Rhino engine
recursion
Issues about js code causing overflows & OOM
This piece of code, when run via Rhino, allocates more and more memory and does not release it (note the line
delete data.value;
which dereferences the only reference to the 2MB string):Alternatively, this piece of code does not cause the issue:
The only change is the creation of a local variable named
newData
.This issue is also not caused when replacing the Java strings with JavaScript strings.
The code runs on an Android device, Rhino 1.7.7 with optimization level -1.
The text was updated successfully, but these errors were encountered: