aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2013-11-22 05:14:37 +0100
committerMike Pall <mike>2013-11-22 05:14:37 +0100
commitb00a0260dd7cd08a136efd085585208dd85076df (patch)
tree29720066d2e3b773f53694d9b14aeb90796f6bba
parent94bfa7cfa6eef3b9911d4f6efae6f19a4f447dd3 (diff)
parent9d909883474e0079227aed20a50122b5969ed429 (diff)
downloadluajit-b00a0260dd7cd08a136efd085585208dd85076df.tar.gz
luajit-b00a0260dd7cd08a136efd085585208dd85076df.tar.bz2
luajit-b00a0260dd7cd08a136efd085585208dd85076df.zip
Merge branch 'master' into v2.1
-rw-r--r--src/lj_gc.c3
-rw-r--r--src/lj_trace.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_gc.c b/src/lj_gc.c
index 592d770b..c41cef21 100644
--- a/src/lj_gc.c
+++ b/src/lj_gc.c
@@ -673,7 +673,8 @@ int LJ_FASTCALL lj_gc_step(lua_State *L)
673 lim = (GCSTEPSIZE/100) * g->gc.stepmul; 673 lim = (GCSTEPSIZE/100) * g->gc.stepmul;
674 if (lim == 0) 674 if (lim == 0)
675 lim = LJ_MAX_MEM; 675 lim = LJ_MAX_MEM;
676 g->gc.debt += g->gc.total - g->gc.threshold; 676 if (g->gc.total > g->gc.threshold)
677 g->gc.debt += g->gc.total - g->gc.threshold;
677 do { 678 do {
678 lim -= (MSize)gc_onestep(L); 679 lim -= (MSize)gc_onestep(L);
679 if (g->gc.state == GCSpause) { 680 if (g->gc.state == GCSpause) {
diff --git a/src/lj_trace.c b/src/lj_trace.c
index 466d9cd2..2b8d931f 100644
--- a/src/lj_trace.c
+++ b/src/lj_trace.c
@@ -781,7 +781,7 @@ int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr)
781 /* Just exit to interpreter. */ 781 /* Just exit to interpreter. */
782 } else if (G(L)->gc.state == GCSatomic || G(L)->gc.state == GCSfinalize) { 782 } else if (G(L)->gc.state == GCSatomic || G(L)->gc.state == GCSfinalize) {
783 if (!(G(L)->hookmask & HOOK_GC)) 783 if (!(G(L)->hookmask & HOOK_GC))
784 lj_gc_check(L); /* Exited because of GC: drive GC forward. */ 784 lj_gc_step(L); /* Exited because of GC: drive GC forward. */
785 } else { 785 } else {
786 trace_hotside(J, pc); 786 trace_hotside(J, pc);
787 } 787 }