Bug 11781 – gc collections run even when disabled

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-19T13:40:29Z
Last change time
2024-12-07T13:33:13Z
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#17126 →

Comments

Comment #0 by bugzilla — 2013-12-19T13:40:29Z
The following program: --------------------------- import std.stdio; import core.memory; void main() { GC.disable(); } ----------------------- when run prints: disable() enable() disable() fullcollect() where gc/gc.d has printf's put in disable(), enable(), and fullcollect().
Comment #1 by yebblies — 2013-12-19T21:19:35Z
I don't think GC.disable should prevent the final collection from happening.
Comment #2 by robert.schadek — 2024-12-07T13:33:13Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17126 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB