why this trace abort?

  • From: Jinhua Luo <luajit.io@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 24 Mar 2016 13:48:40 +0800

Hi All,

Recently I'm trying to tune the luajit.io, and here is a trace abort:

---- TRACE 29 start epoll.lua:84
0076  ISF          0
0077  JMP      4 => 0012
---- TRACE 29 abort epoll.lua:93 -- leaving loop in root trace

Please see 
https://github.com/kingluo/luajit.io/blob/master/lib/ljio/core/epoll.lua#L84
for source code.

The above two byte codes correspond to return to the while loop entry,
I don't know why it would abort.
In fact, the first inner loop (for i = 1, #g_prepare_hooks do) is then
successfully compiled:
---- TRACE 29 start epoll.lua:65
0013  KSHORT   2  -1
0014  KSHORT   3   1
0015  UGET     4   0      ; g_prepare_hooks
...
---- TRACE 29 stop -> return

Please help, thanks!

Regards,
Jinhua Luo

Other related posts: