[Issue 2927] Ignore Interior GC attribute
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 3 07:06:24 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2927
--- Comment #8 from David Simcha <dsimcha at yahoo.com> 2009-11-03 07:06:24 PST ---
Yes, and the killer use case would be associative arrays, which leak memory
like a seive. They are currently (and probably quite often) implemented as
something like:
struct Node {
Node* left;
Node* right;
hash_t hash;
K key;
V value;
}
struct AA {
Node*[] table; // Can be huge, will always have a pointer to head as
// long as the AA is alive, fully owned by the AA
// instance. Perfect candidate for NO_INTERIOR.
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list