Dynamic array ot not
Steven Schveighoffer
schveiguy at gmail.com
Mon Jan 17 01:27:07 UTC 2022
On 1/16/22 7:54 PM, forkit wrote:
> On Sunday, 16 January 2022 at 23:34:41 UTC, Ali Çehreli wrote:
>>
>> Definitely a -profile=gc bug. Here are the existing ones:
>>
>> https://issues.dlang.org/buglist.cgi?quicksearch=profile%20gc
>>
>> Ali
>
> yeah, a bug makes more sense ... otherwise I really would have had a
> slice to data that doesn't exist anywhere.
>
> some of those reported bugs are pretty old.
>
> .. oh well... just another thing in D, that I can't rely on :-(
I think what is happening is that phobos is using a direct call to a
compiler hook, which bypasses the mechanism that recognizes it as a GC
allocation.
It appears that profile=gc doesn't recognize any non-language GC calls.
Even `GC.malloc` doesn't identify any allocations.
https://issues.dlang.org/show_bug.cgi?id=14892
-Steve
More information about the Digitalmars-d-learn
mailing list