From 1d5c2ce4e295562daddfe6ce8e470749f0d42542 Mon Sep 17 00:00:00 2001
From: Mike Pall
+One thing that's not allowed, is to let an FFI call into a C function +get JIT-compiled, which in turn calls a callback, calling into Lua again. +Usually this attempt is caught by the interpreter first and the +C function is blacklisted for compilation. +
++However, this heuristic may fail under specific circumstances: e.g. a +message polling function might not run Lua callbacks right away and the call +gets JIT-compiled. If it later happens to call back into Lua, you'll get a +VM PANIC with the message "bad callback". Then you'll need to +manually turn off JIT-compilation with +jit.off() for the +surrounding Lua function that invokes such a message polling function (or +similar). +
-- cgit v1.2.3-55-g6feb