mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-19 02:00:26 +02:00
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.
This commit is contained in:
parent
354146b4ca
commit
0d96d24073
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2014-07-27 Paulo Andrade <pcpa@gnu.org>
|
||||||
|
|
||||||
|
* 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 <pcpa@gnu.org>
|
2014-04-22 Paulo Andrade <pcpa@gnu.org>
|
||||||
|
|
||||||
* lib/jit_arm.c: Do not get confused with default settings
|
* lib/jit_arm.c: Do not get confused with default settings
|
||||||
|
|
|
@ -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
|
using these wrapped functions, but you must note that if lightning
|
||||||
was linked to GNU binutils, malloc is probably will be called multiple
|
was linked to GNU binutils, malloc is probably will be called multiple
|
||||||
times from there when initializing the disassembler.
|
times from there when initializing the disassembler.
|
||||||
|
|
||||||
|
Because @code{init_jit} may call memory functions, if you need to call
|
||||||
|
@code{jit_set_memory_functions}, 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
|
@end deftypefun
|
||||||
|
|
||||||
@deftypefun void jit_get_memory_functions (@* void *(**@var{alloc_func_ptr}) (size_t), @* void *(**@var{realloc_func_ptr}) (void *, size_t), @* void (**@var{free_func_ptr}) (void *))
|
@deftypefun void jit_get_memory_functions (@* void *(**@var{alloc_func_ptr}) (size_t), @* void *(**@var{realloc_func_ptr}) (void *, size_t), @* void (**@var{free_func_ptr}) (void *))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue