diff options
| author | Mike Pall <mike> | 2011-01-26 02:34:30 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2011-01-26 02:34:30 +0100 |
| commit | a285415b01755b8945068976f856af67968a754d (patch) | |
| tree | 16175244d6a9254eeeed59534fb21cbb8edb6c6d | |
| parent | 1b75ec22c86259deaa02644fca5a096b432e145b (diff) | |
| download | luajit-a285415b01755b8945068976f856af67968a754d.tar.gz luajit-a285415b01755b8945068976f856af67968a754d.tar.bz2 luajit-a285415b01755b8945068976f856af67968a754d.zip | |
One more fix for the trace flush logic. Sigh.
| -rw-r--r-- | src/lj_trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_trace.c b/src/lj_trace.c index cc42dffe..da20f991 100644 --- a/src/lj_trace.c +++ b/src/lj_trace.c | |||
| @@ -226,7 +226,7 @@ static void trace_flushroot(jit_State *J, GCtrace *T) | |||
| 226 | /* Unlink root trace from chain anchored in prototype. */ | 226 | /* Unlink root trace from chain anchored in prototype. */ |
| 227 | if (pt->trace == T->traceno) { /* Trace is first in chain. Easy. */ | 227 | if (pt->trace == T->traceno) { /* Trace is first in chain. Easy. */ |
| 228 | pt->trace = T->nextroot; | 228 | pt->trace = T->nextroot; |
| 229 | } else { /* Otherwise search in chain of root traces. */ | 229 | } else if (pt->trace) { /* Otherwise search in chain of root traces. */ |
| 230 | GCtrace *T2 = traceref(J, pt->trace); | 230 | GCtrace *T2 = traceref(J, pt->trace); |
| 231 | if (T2) { | 231 | if (T2) { |
| 232 | for (; T2->nextroot; T2 = traceref(J, T2->nextroot)) | 232 | for (; T2->nextroot; T2 = traceref(J, T2->nextroot)) |
