<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Aarch64-Darwin Large Code Model is not implemented correctly. Memory allocator crash"
   href="https://bugs.llvm.org/show_bug.cgi?id=52029">52029</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Aarch64-Darwin Large Code Model is not implemented correctly. Memory allocator crash
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>12.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>anand.jain@juliacomputing.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In <a href="https://github.com/JuliaLang/julia/issues/41440#issuecomment-932016347">https://github.com/JuliaLang/julia/issues/41440#issuecomment-932016347</a> and
<a href="https://github.com/JuliaLang/julia/issues/42295">https://github.com/JuliaLang/julia/issues/42295</a> we've noticed a recurring issue
related to the large code model for the new Apple Silicon chips. 

The issue is that the Orc JIT will crash if the memory allocator does not
allocate sections within 4GB of each other (which the default allocator does
not). 

Possible relevant lines of code:
<a href="https://github.com/llvm/llvm-project/blob/6f7483b1ece4747f2aafe4baa05fc07e7dc9ed9d/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp#L7687-L7689">https://github.com/llvm/llvm-project/blob/6f7483b1ece4747f2aafe4baa05fc07e7dc9ed9d/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp#L7687-L7689</a>

<a href="mailto:keno@alumni.harvard.edu">keno@alumni.harvard.edu</a> said I should cc <a href="mailto:lhames@gmail.com">lhames@gmail.com</a> and
<a href="mailto:t.p.northover@gmail.com">t.p.northover@gmail.com</a>. 

(not sure if this is the correct way to tag people using bugzilla)

thanks</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>