<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/97661>97661</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Possibly missplaced comment
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lldb
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          hawkinsw
      </td>
    </tr>
</table>

<pre>
    https://github.com/llvm/llvm-project/blob/73f5f83b192b0a27f7edae5365c247961d9f1bd9/lldb/source/Core/ModuleList.cpp#L809

I am a *huge* fan of lldb and I try to help where I can. I noticed that there were two instances of the comment above in `ModuleList::GetSharedModule` that do not _appear_ to be in the proper spot. 

They appear near calls to `FindModules` on the shared module list instance -- and that does take a local lock on the list while it is executing but, because it is an RAII lock, it is dropped upon function completion. 

I went back through the blame and attempted to see whether the comment was moved because of a copy/paste error but cannot seem to find anything.

It *seems* like the comment should go near 

https://github.com/llvm/llvm-project/blob/73f5f83b192b0a27f7edae5365c247961d9f1bd9/lldb/source/Core/ModuleList.cpp#L794

All this is to say ... if it is the case that the comment is misplaced, I would be more than happy to submit a PR. However, I wanted to confirm with you all first because I am _not_ an expert on this code and could be absolutely getting it wrong.

Thank you for everything!
Will

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVMGOozgQ_RrnUmpEDITmwCE7o-xGmpVGsyPtsVWGInhjbMsumsnfrwzpTPfe9jYXgyjq1at6r4wx6oslakX1m6g-73Dm0YV2xOWqbVx2yvW3dmT2URRHIU9Cni6ax1llnZuEPBnz-vZ48sH9Qx0LeVLGKSFPdTFUw3Oh9o1UOcp6qKlHqopD1cmybg77vhn2qm9WgD5lRDeHjoQ8fXIhPf50_Wzoi46cdd4LWXx5zhuRfxb5cTvPgBMgCHkc5wsJeYQBLbgBEiCg7eEMHG7ADkYyHpaRAsEZOrQZnME61h31wCMy8Bpb0sGLA20jo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