[all-commits] [llvm/llvm-project] ba35c2: [lldb] Limit `nothreadallow` to Python in SWIG bin...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Jan 12 10:19:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba35c27ec9aa9807f5b4be2a0c33ca9b045accc7
      https://github.com/llvm/llvm-project/commit/ba35c27ec9aa9807f5b4be2a0c33ca9b045accc7
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2023-01-12 (Thu, 12 Jan 2023)

  Changed paths:
    M lldb/bindings/interface/SBValueList.i

  Log Message:
  -----------
  [lldb] Limit `nothreadallow` to Python in SWIG bindings

SWIG allows you to partially disable thread support for a given function
in Python with `nothreadallow`. This functionality is limited to Python,
but until SWIG 4.1, it would silently ignore this for other languages,
such as Lua. New versions of SWIG are more strict and therefore we need
to guard this with `SWIGPYTHON`.

For more details on the functionality, I recommend reading the commit
message from 070a1d562b30.




More information about the All-commits mailing list