[all-commits] [llvm/llvm-project] 4164be: [Lldb/Lua] Persist Lua state across script interpr...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Sat Dec 21 15:01:04 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4164be7206d740b77b5a7b4b2f859ed122d08c10
      https://github.com/llvm/llvm-project/commit/4164be7206d740b77b5a7b4b2f859ed122d08c10
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    M lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
    M lldb/source/Plugins/ScriptInterpreter/Lua/Lua.h
    M lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
    M lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h
    A lldb/test/Shell/ScriptInterpreter/Lua/persistent_state.test

  Log Message:
  -----------
  [Lldb/Lua] Persist Lua state across script interpreter calls.

Don't create a new lua state on every operation. Share a single state
across the lifetime of the script interpreter. Add simple locking to
prevent two threads from modifying the state concurrently.




More information about the All-commits mailing list