<div class="gmail_extra"><div class="gmail_quote">On 3 May 2012 12:27, Don Clugston <span dir="ltr"><<a href="mailto:dac@nospam.com" target="_blank">dac@nospam.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 30/04/12 01:03, Manu wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On 30 April 2012 01:24, Tove <<a href="mailto:tove@fransson.se" target="_blank">tove@fransson.se</a><br></div><div><div class="h5">
<mailto:<a href="mailto:tove@fransson.se" target="_blank">tove@fransson.se</a>>> wrote:<br>
<br>
On Sunday, 29 April 2012 at 22:13:22 UTC, Manu wrote:<br>
<br>
Is it technically possible to have a precise GC clean up all<br>
unreferenced<br>
memory in one big pass?<br>
<br>
<br>
yes, but unless it's also moving/compacting... one would suffer<br>
memory fragmentation... so I would imagine TempAlloc is a better fit?<br>
<br>
<br></div></div><div class="im">
In some cases I'm comfortable with that type of fragmentation (large<br>
regularly sized resources), although that leads me to a gaping hole in<br>
D's allocation system...<br>
<br></div><div class="im">
<OT, but still very important><br></div>
There is no way to request aligned memory. I can't even specify an<div class="im"><br>
alignment on a user type and expect it to be aligned if I create one on<br>
the stack, let alone the heap >_<<br>
It seems I can request alignment for items within a struct, but I can't<br>
align the struct its self. In addition, a struct doesn't inherit the<br>
alignment of its aligned members, so the struct is allocated unaligned,<br>
and the aligned member fails its promise anyway.<br>
</div></blockquote>
<br>
Bug 2278.<br>
</blockquote></div><br></div><div class="gmail_extra">Why do you suggest alignment to only 8 bytes (not 16)? MOVAPS and friends operate on 16 byte aligned data, and all non-x86 architectures are strictly 16byte aligned with no unaligned alternative possible.</div>
<div class="gmail_extra">I'd like to see that proposal extended to arbitrary power-of-2, and to allow align(n) applied to structs/classes.</div>