<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 12, 2015 at 11:58 AM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Aug 12, 2015 at 11:57 AM, tim Rowledge <span dir="ltr">&lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
On 12-08-2015, at 11:20 AM, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt; wrote:<br>
<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Aug 12, 2015 at 11:09 AM, Levente Uzonyi &lt;<a href="mailto:leves@elte.hu" target="_blank">leves@elte.hu</a>&gt; wrote:<br>
&gt; I wonder if you&#39;re creating two forwarders in case of #become:, with objects of different size, or just one forwarder for the larger object while copying the smaller object over the larger one (when possible).<br>
&gt;<br>
&gt; Right now it&#39;s the simplest thing that could possibly work.  I think this is a great idea though.  It would potentially eliminate the post-become stack scan if all objects can be becomed either by exchanging contents or (in one-way) shortening.  Alas I don&#39;t have time for this right now.  Any volunteers interested?<br>
<br>
</span>Huh; I thought you had done that ages ago. I recall suggesting it really early in your spur work and could have sworn you did it right then.<br></blockquote><div><br></div></span><div>I think I did exchange of contents when the objects are of the same size, at your prompting, but I definitely know I /didn&#39;t/ do shortening in one-way as per Levente&#39;s suggestion.</div><div></div></div><div class="gmail_extra"><br></div><div><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_</div></span></div></div></div></div></div></blockquote><div> </div><div>Note that there are a fair few potential cases to cover here.  An object may be the last object in eden, or the survivor spaces and may have room beyond it to lengthen it, so it could become a larger object by stretching and copying.  It may be in old space and followed by a free object and so again be amenable to stretching.  I suggest that someone collect data on how often shrinking and/or stretching is an option before expending effort here.</div></div><br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>