I hate class destructors with a burning passion
Vladimir Panteleev
thecybershadow.lists at gmail.com
Thu Jun 10 03:13:06 UTC 2021
On Wednesday, 9 June 2021 at 14:01:39 UTC, Steven Schveighoffer
wrote:
> On 6/9/21 7:02 AM, Steven Schveighoffer wrote:
>> Come to think of it, an InvalidMemoryOperationError should use
>> malloc instead of GC, then maybe we can get stack traces?
>
> I delved into this a bit, trying to see where the GC
> allocations are happening. There are some functions that are
> not marked nogc that can be.
>
> I got hung up on core.demangle.demangle.
>
> It's used here:
> https://github.com/dlang/druntime/blob/751f5665a31ea0f150d71b22a9852abacc2f61ec/src/core/runtime.d#L830-L865
Would it be possible to just skip demangling in situations where
the GC is unavailable?
Pasting the output through
[ddemangle](https://github.com/dlang/tools/blob/master/ddemangle.d) isn't hard at all.
More information about the Digitalmars-d
mailing list