[all-commits] [llvm/llvm-project] ae4441: [Offload] Erase entries from JIT cache when progra...

Ross Brunton via All-commits all-commits at lists.llvm.org
Fri Jul 25 08:11:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae44418f2897f922e5ee4ad0a6da6c5f8f2c33be
      https://github.com/llvm/llvm-project/commit/ae44418f2897f922e5ee4ad0a6da6c5f8f2c33be
  Author: Ross Brunton <ross at codeplay.com>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

  Changed paths:
    M offload/plugins-nextgen/common/include/JIT.h
    M offload/plugins-nextgen/common/src/JIT.cpp
    M offload/plugins-nextgen/common/src/PluginInterface.cpp

  Log Message:
  -----------
  [Offload] Erase entries from JIT cache when program is destroyed (#148847)

When `unloadBinary` is called, any entries in the JITEngine's cache
for that binary will be cleared. This fixes a nasty issue with
liboffload program handles. If two handles happen to have had the same
address (after one was free'd, for example), the cache would be hit and
return the wrong program.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list