
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.
4 lines
157 B
Plaintext
4 lines
157 B
Plaintext
# REQUIRES: lua
|
|
# RUN: %lldb --script-language lua -o 'script foo = 1010' -o 'script bar = 101' -o 'script print(foo+bar)' 2>&1 | FileCheck %s
|
|
# CHECK: 1111
|