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
With -version=GC root/array.d will leak memory.
But only when dim is 1.
This is because it is putting it into smallarray, instead of allocating memory.
It can be verified by setting SMALLARRAYCAP to 0 and removing the if statement in the destructor.
During my testing with dmd as a library it will result in ~0.5mb leakage. The test cases were small, but in much larger cases this could be quite serious for reusability.
This could be a by product of other issues, I do not know.
The text was updated successfully, but these errors were encountered:
Richard (Rikki) Andrew Cattermole reported this on 2018-04-29T13:54:20Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=18811
CC List
Description
With -version=GC root/array.d will leak memory. But only when dim is 1. This is because it is putting it into smallarray, instead of allocating memory. It can be verified by setting SMALLARRAYCAP to 0 and removing the if statement in the destructor. During my testing with dmd as a library it will result in ~0.5mb leakage. The test cases were small, but in much larger cases this could be quite serious for reusability. This could be a by product of other issues, I do not know.The text was updated successfully, but these errors were encountered: