tra added a comment.

In D146448#4207800 <https://reviews.llvm.org/D146448#4207800>, @tra wrote:

> However, `KernelStubs` would still point to the original `F`, and that may 
> potentially be left dangling. Perhaps I should always update both handles and 
> stubs if `F` changes.

Yes, HIP is susceptibel to having the dangling pointer to F. What saves us is 
that KernelStubs happens to be used only *before* the cached functions are 
reinstantiated, so we never use those dangling pointers in case of HIP. 
OK, looks like I'll need to fix HIP, too.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146448/new/

https://reviews.llvm.org/D146448

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to