Comment #0 by alphaglosined — 2018-04-29T13:54:20Z
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.
Comment #1 by robert.schadek — 2024-12-13T18:58:31Z