Re: How to find what is causing a closure allocation

2019-10-02 Thread Boris Carvajal via Digitalmars-d-learn
On Wednesday, 2 October 2019 at 15:19:43 UTC, John Colvin wrote: I have a function that allocates a closure somewhere in it (as shown by the result of -profile=gc). I can't make the function nogc as it calls a lot of other GC using code. profilegc.log only gives me the line number of the fun

Re: How to find what is causing a closure allocation

2019-10-02 Thread Adam D. Ruppe via Digitalmars-d-learn
On Wednesday, 2 October 2019 at 15:19:43 UTC, John Colvin wrote: profilegc.log only gives me the line number of the function signature, which doesn't give me any hint as to where in the function the closure is allocated. You'll wanna check any nested functions declared in that function. Kinda

How to find what is causing a closure allocation

2019-10-02 Thread John Colvin via Digitalmars-d-learn
I have a function that allocates a closure somewhere in it (as shown by the result of -profile=gc). I can't make the function nogc as it calls a lot of other GC using code. profilegc.log only gives me the line number of the function signature, which doesn't give me any hint as to where in th