Garbage collector collects live objects
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Dec 19 11:08:12 PST 2014
On 12/12/14 10:50 AM, Steven Schveighoffer wrote:
> On 12/12/14 7:52 AM, Ruslan Mullakhmetov wrote:
>> btw, i used suggested trackallocs.d and GC defenetely receives NO_SCAN
>>
>> before tag: 1 len: 2 ptr: 103A78058 root: 103A77000:8192 attr: APPENDABLE
>> gc_qalloc(41, NO_SCAN APPENDABLE ) cc: 29106 asz: 10152603, ti: null
>> ret: BlkInfo_(104423800, 64, 10)
>> after tag: 1 len: 3 ptr: 104423810 root: 104423800:64 attr: NO_SCAN
>> APPENDABLE
>
> This is good information, thanks. I will get back to you with a druntime
> branch to try. Can I email you at this address? If not, email me at the
> address from my post to let me know your contact, no reason to work
> through building issues on the public forum :)
For those who were interested, we were not able to solve this problem,
and unfortunately Ruslan's company cannot keep trying to debug, they
have moved on to another language :(
If anyone else has this kind of issue (array appending causing flags to
change), please let me know, I would like to make sure this gets solved.
I am creating 2 fixes, one to fix the issue with the offset (in
progress) and after that I will attempt to ensure any changes to a
block's flags stick when the array is appended (I found at least one
place in Phobos where this can cause a bug, but it's not affecting his
code).
Ruslan, you may want to try the second fix when it has been added just
to see if it helps.
The two bug reports are:
https://issues.dlang.org/show_bug.cgi?id=13854
https://issues.dlang.org/show_bug.cgi?id=13878
-Steve
More information about the Digitalmars-d-learn
mailing list