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