-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffi.typeof limit and shm.lua #1405
Comments
The FFI is limited to defining max 64K types. Each time you call You probably need to reformulate your program to define fewer types and reuse them. This means at least caching the results of your calls to I don't think this issue touches on operating system shared memory issues -- it's the Lua runtime. Does that help? |
Thanks for the reply, I will try your recommendation. I think |
Just remember that every time you call |
Hello,
I tried to create and open objects with shm many times аnd found the problem
(function map from shm.lua - return ffi.cast(ffi.typeof("$&", ctype), mem))
which I tried to reproduce in the following code:Result:
Of course, after create() and open() I run unmap(), unlink() for every object.
The text was updated successfully, but these errors were encountered: