Allocator thread safety question

  • From: Richard Hundt <richardhundt@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 28 Mar 2014 00:22:52 +0100

Hi Mike,

I saw the following note on in the LuaLanes docs:

<quote>
Lanes wraps all calls to the state's allocator function inside a mutex.
Useful when running Lanes with LuaJIT, whose allocator is not threadsafe.
</quote>

Is the remark about thread safety correct, or are they talking about
older versions?

I'm running multiple threads with separate global states, which is
similar to the LuaLanes model, and haven't seen any issues, but then I
haven't pushed it hard either.

Cheers,
Richard

Other related posts: