[all-commits] [llvm/llvm-project] f3428d: [ORC] Add a ~ExectionSession destructor to verify ...

lhames via All-commits all-commits at lists.llvm.org
Sat May 21 09:48:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3428dafdc553d4354062863983a3bbe712e1266
      https://github.com/llvm/llvm-project/commit/f3428dafdc553d4354062863983a3bbe712e1266
  Author: Lang Hames <lhames at gmail.com>
  Date:   2022-05-21 (Sat, 21 May 2022)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/Orc/Core.h
    M llvm/lib/ExecutionEngine/Orc/Core.cpp
    M llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp

  Log Message:
  -----------
  [ORC] Add a ~ExectionSession destructor to verify that endSession was called.

Clients are required to call ExecutionSession::endSession before destroying the
ExecutionSession. Failure to do so can lead to memory leaks and other difficult
to debug issues. Enforcing this requirement by assertion makes it easy to spot
or debug situations where the contract was not followed.




More information about the All-commits mailing list