Am 05.09.2012 14:34, schrieb Peter Alexander:
On Wednesday, 5 September 2012 at 12:27:05 UTC, Benjamin Thaut wrote:
Then because they are const, TypeInfo_Const.toString() will be called:

    override string toString()
    {
        return cast(string) ("const(" ~ base.toString() ~ ")");
    }

which allocates, due to array concardination.

Wow.

I already have a fix for this.

https://github.com/Ingrater/druntime/commit/74713f7af496fd50fe4cfe60b3d9906b87efbdb6
https://github.com/Ingrater/druntime/commit/05c440b0322d39cf98425f50172c468c6659efb8

If I find a good description how to do pull requests, I might be able to do one.

Kind Regards
Benjamin Thaut

Reply via email to