소스 검색

One more fix for the trace flush logic. Sigh.

Mike Pall 14 년 전
부모
커밋
a285415b01
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/lj_trace.c

+ 1 - 1
src/lj_trace.c

@@ -226,7 +226,7 @@ static void trace_flushroot(jit_State *J, GCtrace *T)
   /* Unlink root trace from chain anchored in prototype. */
   if (pt->trace == T->traceno) {  /* Trace is first in chain. Easy. */
     pt->trace = T->nextroot;
-  } else {  /* Otherwise search in chain of root traces. */
+  } else if (pt->trace) {  /* Otherwise search in chain of root traces. */
     GCtrace *T2 = traceref(J, pt->trace);
     if (T2) {
       for (; T2->nextroot; T2 = traceref(J, T2->nextroot))