[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 266/437: Add assertion to detect double patching.
From: |
Andy Wingo |
Subject: |
[Guile-commits] 266/437: Add assertion to detect double patching. |
Date: |
Mon, 2 Jul 2018 05:14:34 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit a264ccee75ad507330384257ee5be2718856926d
Author: pcpa <address@hidden>
Date: Wed Oct 16 01:13:46 2013 -0300
Add assertion to detect double patching.
This triggers the bug at the right point, otherwise, double patching
may be quite hard to track.
---
lib/lightning.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/lightning.c b/lib/lightning.c
index 635a201..ebc76c1 100644
--- a/lib/lightning.c
+++ b/lib/lightning.c
@@ -1367,6 +1367,7 @@ _jit_patch_at(jit_state_t *_jit, jit_node_t *instr,
jit_node_t *label)
{
jit_int32_t mask;
+ assert(!(instr->flag & jit_flag_node));
instr->flag |= jit_flag_node;
switch (instr->code) {
case jit_code_movi:
- [Guile-commits] 220/437: Update ia64 port to work on HP-UX., (continued)
- [Guile-commits] 220/437: Update ia64 port to work on HP-UX., Andy Wingo, 2018/07/02
- [Guile-commits] 247/437: Add the jit_callee_save_p interface and extra register definitions., Andy Wingo, 2018/07/02
- [Guile-commits] 259/437: Correct wrong dates in ChangeLog, Andy Wingo, 2018/07/02
- [Guile-commits] 258/437: MIPS: Correct abi detection., Andy Wingo, 2018/07/02
- [Guile-commits] 261/437: MIPS: Build and pass all test cases on mips64., Andy Wingo, 2018/07/02
- [Guile-commits] 181/437: Correct description of the jmpi instruction., Andy Wingo, 2018/07/02
- [Guile-commits] 141/437: Correct test cases in i586 build., Andy Wingo, 2018/07/02
- [Guile-commits] 274/437: x86: Correct wrong x87 optimization., Andy Wingo, 2018/07/02
- [Guile-commits] 271/437: Correct wrong call in ldi_f if address does not fit in 32 bit., Andy Wingo, 2018/07/02
- [Guile-commits] 238/437: test for zlib in configure.ac, Andy Wingo, 2018/07/02
- [Guile-commits] 266/437: Add assertion to detect double patching.,
Andy Wingo <=
- [Guile-commits] 199/437: Correct wrong shift value for 32 bit, Andy Wingo, 2018/07/02
- [Guile-commits] 294/437: Correct change of possibly wrong bitmask in jit_update, Andy Wingo, 2018/07/02
- [Guile-commits] 291/437: MIPS: Correct use of wrong test register, Andy Wingo, 2018/07/02
- [Guile-commits] 303/437: Only mark callee save regs as live on jumps that cannot be tracked., Andy Wingo, 2018/07/02
- [Guile-commits] 218/437: Build and pass all test cases on a multiprocessor HP-UX., Andy Wingo, 2018/07/02
- [Guile-commits] 285/437: GNU lightning 2.0.4 release, Andy Wingo, 2018/07/02
- [Guile-commits] 193/437: Make code and data buffer readonly., Andy Wingo, 2018/07/02
- [Guile-commits] 145/437: Add new test case for int/float to/from conversion., Andy Wingo, 2018/07/02
- [Guile-commits] 308/437: x86: Update instruction size information for Windows x64, Andy Wingo, 2018/07/02
- [Guile-commits] 313/437: Implement the jit_align interface, Andy Wingo, 2018/07/02