<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Without knowing much about this code, does this apply to constant NSStrings as well?</div><div><br></div><div>(I'm guessing people don't do this very often anyway...)</div><div><br></div><div>Jordan</div><div><br></div><br><div><div>On Apr 15, 2013, at 13:38 , jahanian <<a href="mailto:fjahanian@apple.com">fjahanian@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Here is the patch.<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">          </span></div></div>
<span><diff.txt></span><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div></div><div><br><div><div>On Apr 15, 2013, at 1:36 PM, jahanian <<a href="mailto:fjahanian@apple.com">fjahanian@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">This is //<span class="Apple-converted-space"> </span><a href="rdar://13598026">rdar://13598026</a><br>We cache uses of __CFConstantStringClassReference external symbol when generating the API for<br>cfstring. This, however, causes a crash in extreme rare case where user has chosen to provide a tentative<br>definition of __CFConstantStringClassReference followed by build of a cfstring followed by delayed<br>generation of another cfstring. This sequence of events causes the 2nd access to this cached symbol to be<br>a dangling reference because in the course of completing the tentative definition, the cached __CFConstantStringClassReference<br>has been erased. I fix this by removing caching of __CFConstantStringClassReference altogether. This is because<br>all global symbols are cached in llvm’s global symbol table which is tightly managed. There is no need to have our own<br>cache of this symbol.<span class="Apple-converted-space"> </span><br>Please review.<br><br>- Fariborz</div></blockquote></div><br></div></div>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits<br></blockquote></div><br></body></html>