[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Can lua 5.x work with handle-based memory managers...
- From: Joseph Stewart <joseph.stewart@...>
- Date: Thu, 24 Feb 2005 13:29:23 -0500
Hello my esteemed lua fans!
I use an embedded operating system that looks a lot like the old
(pre-OSX) Apple Macintosh OS. The device has no hardware MMU to
provide a "flat" memory view to software. There are many concurrent
threads competing for the heap, so the OS developers implemented a
"handle-based" memory manager (apps get "pointers-to-pointers"). App
developers are encouraged to "unlock" their memory handles when not
actively using them.
With all this in mind, how hard would it be to modify Lua 5.x to:
1) use memory handles instead of pointers, and
2) unlock these handles at opportune times (i.e. waiting for a c
function to complete, etc).
Any precedent for this?
Thanks for your time!
If it ain't broke, break it. How else are you going to figure out how it works?