Steven Schveighoffer <> changed:

           What    |Removed                     |Added
                 CC|                            |
          Component|druntime                    |DMD
         AssignedTo|      |
           Severity|major                       |enhancement

--- Comment #1 from Steven Schveighoffer <> 2010-07-19 
13:10:48 PDT ---
DMD is the main culprit here, not druntime.  And this is not a bug, it's an
enhancement.  DMD functions exactly as designed.

DMD is the one generating the code to call the arrayNew function with length 1.
 Druntime cannot tell between someone actually allocating an array of 1 or
someone allocating a single struct.

With the "Appendable" bit I just added for druntime, this could be alleviated
if the compiler would call a separate function for struct allocators.

As a workaround, you can pre-allocate a large block of nodes, which will only
have one byte of pad per block allocated.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to