<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - We should consider allocating a CodeBlock's Instruction stream away from other things"
   href="https://bugs.webkit.org/show_bug.cgi?id=163375#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - We should consider allocating a CodeBlock's Instruction stream away from other things"
   href="https://bugs.webkit.org/show_bug.cgi?id=163375">bug 163375</a>
              from <span class="vcard"><a class="email" href="mailto:fpizlo&#64;apple.com" title="Filip Pizlo &lt;fpizlo&#64;apple.com&gt;"> <span class="fn">Filip Pizlo</span></a>
</span></b>
        <pre>I wonder if we could add API to bmalloc to do this.  It would force those objects to be allocated from their own size classes.  If they get large, they would be allocated with guard pages around them, automatically.

Something like:

Foo* createFoo()
{
    static SeparateMallocSpace mySpace;
    return static_cast&lt;Foo*&gt;(fastMallocSeparate(mySpace, sizeof(Foo)));
}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>