please include function emit. static L getEmits(Runnable r) { temp tempSetThreadLocal(emit_tl, new L); callF(r); ret emit_tl!; }