[all-commits] [llvm/llvm-project] 39253a: [ORC] Re-apply 98f2bb44610, enable JITEventListene...

lhames via All-commits all-commits at lists.llvm.org
Thu Mar 19 16:30:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 39253a50f0f33e491e2d021f94cd3a87ee773f2d
      https://github.com/llvm/llvm-project/commit/39253a50f0f33e491e2d021f94cd3a87ee773f2d
  Author: Lang Hames <lhames at gmail.com>
  Date:   2020-03-19 (Thu, 19 Mar 2020)

  Changed paths:
    M llvm/examples/OrcV2Examples/CMakeLists.txt
    A llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/CMakeLists.txt
    A llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp
    M llvm/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
    M llvm/include/llvm/ExecutionEngine/RuntimeDyld.h
    M llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
    M llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
    M llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
    M llvm/tools/lli/lli.cpp

  Log Message:
  -----------
  [ORC] Re-apply 98f2bb44610, enable JITEventListeners in OrcV2, with fixes.

Updates the object buffer ownership scheme in jitLinkForOrc and related
functions: Ownership of both the object::ObjectFile and underlying
MemoryBuffer is passed into jitLinkForOrc and passed back to the onEmit
callback once linking is complete. This avoids the use-after-free errors
that were seen in 98f2bb44610.




More information about the All-commits mailing list