[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 288/437: Add note about jit_set_memory_functions call.
From: |
Andy Wingo |
Subject: |
[Guile-commits] 288/437: Add note about jit_set_memory_functions call. |
Date: |
Mon, 2 Jul 2018 05:14:38 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 0d96d24073bbe42054d7de6a7739b9db07d54e96
Author: pcpa <address@hidden>
Date: Sun Jul 27 16:45:03 2014 -0300
Add note about jit_set_memory_functions call.
* doc/body.texi: Add note that jit_set_memory_functions
should be called before init_jit, because init_jit
itself may call the memory wrappers.
---
ChangeLog | 6 ++++++
doc/body.texi | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 79bdd6f..af99cd7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-07-27 Paulo Andrade <address@hidden>
+
+ * doc/body.texi: Add note that jit_set_memory_functions
+ should be called before init_jit, because init_jit
+ itself may call the memory wrappers.
+
2014-04-22 Paulo Andrade <address@hidden>
* lib/jit_arm.c: Do not get confused with default settings
diff --git a/doc/body.texi b/doc/body.texi
index a1a4659..81b8798 100644
--- a/doc/body.texi
+++ b/doc/body.texi
@@ -1293,6 +1293,11 @@ for @code{free} or @code{old_size} for @code{realloc}.
using these wrapped functions, but you must note that if lightning
was linked to GNU binutils, malloc is probably will be called multiple
times from there when initializing the disassembler.
+
+Because @code{init_jit} may call memory functions, if you need to call
address@hidden, it must be called before @code{init_jit},
+otherwise, when calling @code{finish_jit}, a pointer allocated with the
+previous or default wrappers will be passed.
@end deftypefun
@deftypefun void jit_get_memory_functions (@* void *(address@hidden) (size_t),
@* void *(address@hidden) (void *, size_t), @* void (address@hidden) (void *))
- [Guile-commits] 436/437: Wire JIT availability check into Guile configure, (continued)
- [Guile-commits] 436/437: Wire JIT availability check into Guile configure, Andy Wingo, 2018/07/02
- [Guile-commits] 350/437: Correct typo., Andy Wingo, 2018/07/02
- [Guile-commits] 424/437: Beginnings of build integration of lightning and guile, Andy Wingo, 2018/07/02
- [Guile-commits] 204/437: Add basic Itanium port infrastructure., Andy Wingo, 2018/07/02
- [Guile-commits] 425/437: Remove lightning pkg-config file., Andy Wingo, 2018/07/02
- [Guile-commits] 411/437: Correct issues with 32 bit big endian mips abis, Andy Wingo, 2018/07/02
- [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 <=
- [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, 2018/07/02
- [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