<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">What did you intend to use the high bits for?<br></blockquote><div><br></div><div>Nothing right now.  Just speculation.  </div><div><br></div><div>I was actually pondering how our headers are rather svelte compared to many languages.  Java, for instance, saves a full word for a hash.</div><div><br></div><div>There are endless bits of metadata to speculate about...</div><div><ul><li>whether or not the heap object is frozen to disallow further modification (e.g. for MutVars)</li><li>whether or not the heap object is part of a contiguous CNF</li><li>a flag to invoke some alternate GC behavior</li><li>metadata to avoid dereferencing the info table pointer in some circumstances (common type tags?)</li><li>you could even index 2^16 per-type values that live off of the info table</li></ul></div><div>But most likely it would have to be something that would give across the board perf improvements that would pay for the extra cost in masking.  Good point re: HW prefetching.</div><div><div><br></div></div></div></div></div>