[Issue 9275] [GC] removeRoot hits assert(0) instead of being a no-op (as documented)
https://issues.dlang.org/show_bug.cgi?id=9275 --- Comment #6 from github-bugzi...@puremagic.com --- Commit pushed to newCTFE at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/a1fb3915f562428741324ac5b319d9316fb57231 Fix issue 9275: Add test for removeRoot --
[Issue 9275] [GC] removeRoot hits assert(0) instead of being a no-op (as documented)
https://issues.dlang.org/show_bug.cgi?id=9275 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/a1fb3915f562428741324ac5b319d9316fb57231 Fix issue 9275: Add test for removeRoot --
[Issue 9275] [GC] removeRoot hits assert(0) instead of being a no-op (as documented)
https://issues.dlang.org/show_bug.cgi?id=9275 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/a1fb3915f562428741324ac5b319d9316fb57231 Fix issue 9275: Add test for removeRoot Issue 9275 describes the runtime crashing on the invalid pointer passed to removeRoot, instead of documented no-op. This has been fixed in the meantime, so unittest is added as a guarantee that it stays so. --
[Issue 9275] [GC] removeRoot hits assert(0) instead of being a no-op (as documented)
https://issues.dlang.org/show_bug.cgi?id=9275 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 9275] [GC] removeRoot hits assert(0) instead of being a no-op (as documented)
https://issues.dlang.org/show_bug.cgi?id=9275 --- Comment #3 from Nemanja Boric <4bur...@gmail.com> --- tests: https://github.com/dlang/druntime/pull/1679 --
[Issue 9275] [GC] removeRoot hits assert(0) instead of being a no-op (as documented)
https://issues.dlang.org/show_bug.cgi?id=9275 safety0ff.bugz changed: What|Removed |Added Keywords||bootcamp CC||safety0ff.b...@gmail.com --- Comment #2 from safety0ff.bugz --- A unit test should be added and then this bug should be closed. --
[Issue 9275] [GC] removeRoot hits assert(0) instead of being a no-op (as documented)
https://issues.dlang.org/show_bug.cgi?id=9275 Nemanja Boric <4bur...@gmail.com> changed: What|Removed |Added CC||4bur...@gmail.com --- Comment #1 from Nemanja Boric <4bur...@gmail.com> --- Looks like this has been fixed in the meantime: ``` import core.memory; void main() { // this will work fine GC.removeRoot(null); //this will boom once liner search fails to find '13' among roots //It does the same with any sane pointer that isn't a root GC.removeRoot(cast(void*)13); } ``` --