[Issue 18900] GC doesn't collect large arrays on 32-bit Windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 24 01:23:31 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18900

| <dhasenan at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dhasenan at gmail.com

--- Comment #1 from | <dhasenan at gmail.com> ---
The reason people talk about 32-bit applications likely leaking memory is
because D's current GC sometimes can't distinguish an integer from a pointer
(so-called false pointers).

The GC will scan all global variables, every thread stack, and every allocation
(probably only every allocation of a type that might include pointers, but it's
been a while since I looked into it).

It's possible that there is no 12MB section of memory that does not have a
false pointer to it, but that's not likely.

--


More information about the Digitalmars-d-bugs mailing list