[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 321/437: x86: Correct not released temporary register
From: |
Andy Wingo |
Subject: |
[Guile-commits] 321/437: x86: Correct not released temporary register |
Date: |
Mon, 2 Jul 2018 05:14:45 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit ddd7a7550bb3be79b877d62c3028abe6462da976
Author: pcpa <address@hidden>
Date: Sun Oct 26 15:23:29 2014 -0200
x86: Correct not released temporary register
* lib/jit_x86-cpu.c: Correct a register allocation leak in
_bmsi and _bmci.
---
ChangeLog | 5 +++++
lib/jit_x86-cpu.c | 2 ++
2 files changed, 7 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 2058def..3b4b0fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-26 Paulo Andrade <address@hidden>
+
+ * lib/jit_x86-cpu.c: Correct a register allocation leak in
+ _bmsi and _bmci.
+
2014-10-25 Paulo Andrade <address@hidden>
* lib/jit_disasm.c: Do not cause an fatal error if init_jit
diff --git a/lib/jit_x86-cpu.c b/lib/jit_x86-cpu.c
index 2e284f9..80d5b40 100644
--- a/lib/jit_x86-cpu.c
+++ b/lib/jit_x86-cpu.c
@@ -3069,6 +3069,7 @@ _bmsi(jit_state_t *_jit, jit_word_t i0, jit_int32_t r0,
jit_word_t i1)
reg = jit_get_reg(jit_class_gpr);
movi(rn(reg), i1);
testr(r0, rn(reg));
+ jit_unget_reg(reg);
}
jnz(i0);
return (_jit->pc.w);
@@ -3092,6 +3093,7 @@ _bmci(jit_state_t *_jit, jit_word_t i0, jit_int32_t r0,
jit_word_t i1)
reg = jit_get_reg(jit_class_gpr);
movi(rn(reg), i1);
testr(r0, rn(reg));
+ jit_unget_reg(reg);
}
jz(i0);
return (_jit->pc.w);
- [Guile-commits] 233/437: Correct license to properly advertise LGPLv3 and not GPLv3., (continued)
- [Guile-commits] 233/437: Correct license to properly advertise LGPLv3 and not GPLv3., Andy Wingo, 2018/07/02
- [Guile-commits] 343/437: Implement new, typed, jit_htonr* interfaces, Andy Wingo, 2018/07/02
- [Guile-commits] 423/437: Finish removing get-jit-size, Andy Wingo, 2018/07/02
- [Guile-commits] 320/437: Do not fail gratuitously in jit_init_debug, Andy Wingo, 2018/07/02
- [Guile-commits] 288/437: Add note about jit_set_memory_functions call., Andy Wingo, 2018/07/02
- [Guile-commits] 419/437: Merge GNU lightning to libguile/lightning, Andy Wingo, 2018/07/02
- [Guile-commits] 194/437: Rework to better describe what is used only during jit generation., Andy Wingo, 2018/07/02
- [Guile-commits] 386/437: hppa: Add initial jit_va_ calls to hppa, Andy Wingo, 2018/07/02
- [Guile-commits] 25/437: upgrade to autoconf 2.60, Andy Wingo, 2018/07/02
- [Guile-commits] 182/437: Implement the qmul and qdiv instructions., Andy Wingo, 2018/07/02
- [Guile-commits] 321/437: x86: Correct not released temporary register,
Andy Wingo <=
- [Guile-commits] 315/437: Add string representation of IR codes to -sz.c files, Andy Wingo, 2018/07/02
- [Guile-commits] 402/437: Correct wrong check for argument of value 2 in check/fib.tst., Andy Wingo, 2018/07/02
- [Guile-commits] 374/437: Add initial support to implement vararg jit functions, Andy Wingo, 2018/07/02
- [Guile-commits] 171/437: Add the new ccall test case to test interleaved C and jit function calls, Andy Wingo, 2018/07/02
- [Guile-commits] 51/437: switch to GPLv3, Andy Wingo, 2018/07/02
- [Guile-commits] 160/437: Correct bogus logic caused by wrong optimizations., Andy Wingo, 2018/07/02
- [Guile-commits] 05/437: use autoheader like every other package in this world, Andy Wingo, 2018/07/02
- [Guile-commits] 341/437: Add missing float rsbi strings, Andy Wingo, 2018/07/02
- [Guile-commits] 296/437: ALPHA: Implement lightning Alpha port., Andy Wingo, 2018/07/02
- [Guile-commits] 207/437: Correct race condition if register is written more than once, Andy Wingo, 2018/07/02