July 18, 2014 [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #22 from Orvid King <blah38621@gmail.com> --- 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 as a change (which I still need to make), to the test suite so that it doesn't allocate in a destructor. The DMD PR is here: https://github.com/D-Programming-Language/dmd/pull/3727 And the druntime PR, as mentioned farther up, is here: https://github.com/D-Programming-Language/druntime/pull/864 -- |
August 29, 2014 [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #23 from Orvid King <blah38621@gmail.com> --- 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 merge. I've also been doing my local projects with the man DRuntime PR included, and have yet to encounter any issues on win32, so I believe that it is stable. -- |
August 29, 2014 [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #24 from Andrei Alexandrescu <andrei@erdani.com> --- Ready to take the big step with 2.067? -- |
August 29, 2014 [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #25 from Orvid King <blah38621@gmail.com> --- Fine by me. -- |
August 29, 2014 [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2834 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx --- Comment #26 from hsteoh@quickfur.ath.cx --- Let's do it. This issue has been waiting since 2009. It's about time we did this right. -- |
August 29, 2014 [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #27 from Andrei Alexandrescu <andrei@erdani.com> --- 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 code. -- |
August 30, 2014 [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #28 from Orvid King <blah38621@gmail.com> --- Where should I add it? It can't be in rt.lifetime, because that's not exposed to the user. -- |
August 30, 2014 [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #29 from Andrei Alexandrescu <andrei@erdani.com> --- core.memory? -- |
January 15, 2015 [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2834 github-bugzilla@puremagic.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- |
January 15, 2015 [Issue 2834] Struct Destructors are not called by the GC, but called on explicit delete. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=2834 --- Comment #30 from github-bugzilla@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 #864 from Orvid/structDestructors Fix Issue 2834 - The GC will now call destructors on heap allocated structs -- |
Copyright © 1999-2021 by the D Language Foundation