[Issue 4681] Appender access violation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 24 02:18:48 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4681


nfxjfg at gmail.com changed:

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


--- Comment #9 from nfxjfg at gmail.com 2010-08-24 02:18:39 PDT ---
There's some wtfish code in Appender, that probably tries to emulate how the
runtime allocates arrays. I don't understand why it doesn't simply use the
functions exported by the runtime. Even if not, there's no justification to
duplicate all the code in Phobos, instead of extending the runtime itself.

Or maybe the original author thought a simple function call on array
reallocation is to slow?

Also I doubt using gc_realloc is a good idea: in some cases, gc_realloc frees
memory by force (similar to gc_free), and thus is unsafe in SafeD's definition.
(Although I'm not quite sure if that is the case here.)

-- 
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