[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2015-02-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #31 from github-bugzi...@puremagic.com --- Commit pushed to 2.067 at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/dbbea7c5bd4d8936dc8cb523b65f771842f2a487 Merge pull request #

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2015-01-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #30 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/dbbea7c5bd4d8936dc8cb523b65f771842f2a487 Merge pull request

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2015-01-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-08-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #29 from Andrei Alexandrescu --- core.memory? --

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-08-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #28 from Orvid King --- Where should I add it? It can't be in rt.lifetime, because that's not exposed to the user. --

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-08-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #27 from Andrei Alexandrescu --- Could you please add a function to druntime callStructDtorsDuringGC(bool)? That would give a chance people who have issues with the called destructors to revert back to the old behavior until they fix their

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-08-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Comment #2

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-08-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #25 from Orvid King --- Fine by me. --

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-08-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #24 from Andrei Alexandrescu --- Ready to take the big step with 2.067? --

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-08-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #23 from Orvid King --- And another update. The fix to the other issue that this encountered has already been merged, and the main DRuntime PR has been running green on the autotester for a while now. It's just awaiting a final review and

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #22 from Orvid King --- Ok, so, to give an update on this issue, I've now implemented the invoking of destructors on heap allocated structs, as well as arrays of structs. It required a fix to a bug in DMD with the delete operator, as well

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 Rainer Schuetze changed: What|Removed |Added CC||r.sagita...@gmx.de --- Comment #21 from Rai

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 Dmitry Olshansky changed: What|Removed |Added CC||dmitry.o...@gmail.com --- Comment #20 from

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #19 from Orvid King --- We still wouldn't be able to call the destructors in structs for arrays even with precise heap scanning, because we can't know that each value in the array is actually valid. Take for instance an array of File's,

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #18 from Jonathan M Davis --- (In reply to Orvid King from comment #17) > https://github.com/D-Programming-Language/druntime/pull/864 > > It's not feasibly possible to call destructors on heap-allocated arrays of > structures, however thi

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 Orvid King changed: What|Removed |Added CC||blah38...@gmail.com --- Comment #17 from Orvid K

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 David Nadlinger changed: What|Removed |Added CC||c...@klickverbot.at --- Comment #16 from Da

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-04 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #15 from Orvid King --- Would making all the writeln's in http://dpaste.dzfl.pl/fbb4a15cda14 print out be an acceptable solution to this issue? (that is, making heap-allocated structs call their destructors) --

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #14 from Jonathan M Davis --- (In reply to Benoit Rostykus from comment #12) > AdRoll (the company I work for) just put a $1000 bounty on this bug: That's quite the bounty. --

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 Jonathan M Davis changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #13 from J

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2834 Benoit Rostykus changed: What|Removed |Added CC||benoit.rosty...@adroll.com --- Comment #12

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-02-28 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=2834 rswhi...@googlemail.com changed: What|Removed |Added CC||rswhi...@googlemail.com ---

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2014-02-28 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=2834 Dicebot changed: What|Removed |Added CC||pub...@dicebot.lv Platform|x86

Re: [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-11-22 Thread Max Samukha
On 11/21/2010 08:20 PM, Sean Kelly wrote: wrote: http://d.puremagic.com/issues/show_bug.cgi?id=2834 Max Samukha changed: What|Removed |Added CC| |samu...@volia

Re: [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-11-21 Thread Sean Kelly
wrote: > http://d.puremagic.com/issues/show_bug.cgi?id=2834 > > > Max Samukha changed: > >What|Removed |Added > > CC| > |samu...@voliacab

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-11-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2834 --- Comment #9 from Max Samukha 2010-11-18 03:59:12 PST --- (In reply to comment #8) > We have a nasty problem when destructors are called on the appended elements > because postblits was not run for them during append. I meant the problem is

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-11-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2834 Max Samukha changed: What|Removed |Added CC||samu...@voliacable.com --- Comment #8 fr

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2834 --- Comment #7 from bearophile_h...@eml.cc 2010-07-11 17:24:58 PDT --- One case where struct destructors are not called, in this situation it seems simpler for the GC to know what destructors to call: import core.memory: GC; import core.stdc.s

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2834 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-07-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2834 --- Comment #5 from Sean Kelly 2010-07-10 08:41:54 PDT --- Fixing this will probably be fairly involved. The GC will have to store a TypeInfo reference for each block that needs to be finalized. The best approach may be to integrate this wit

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-07-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2834 Sean Kelly changed: What|Removed |Added CC||s...@invisibleduck.org --- Comment #4 fro

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-07-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2834 nfx...@gmail.com changed: What|Removed |Added CC||nfx...@gmail.com --- Comment #3 from

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-07-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2834 Rob Jacques changed: What|Removed |Added CC||and...@metalanguage.com --- Comment #1 f

[Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete.

2010-07-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2834 --- Comment #2 from Rob Jacques 2010-07-09 23:22:39 PDT --- >From Issue 4442: Example brought up by Sean Kelly in private correspondence: struct S1{ ~this() { writeln("dtor"); } } void main() { auto a = S1(); auto b = new S1(); del