mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-06 15:40:29 +02:00
Do not start over jit generation if can safely grow buffer size.
* include/lightning/jit_private.h, lib/jit_arm.c, lib/jit_memory.c, lib/jit_mips.c, lib/jit_ppc.c, lib/jit_sparc.c, lib/jit_x86.c, lib/lightning.c: Do not start over jit generation if can grow the code buffer with mremap without moving the base pointer.
This commit is contained in:
parent
c39def9dce
commit
51c96f9e19
9 changed files with 49 additions and 10 deletions
|
@ -360,6 +360,8 @@ struct jit_compiler {
|
|||
} prolog;
|
||||
jit_bool_t jump;
|
||||
#endif
|
||||
/* global flag for code buffer heuristic size computation */
|
||||
jit_word_t mult;
|
||||
};
|
||||
|
||||
#define _jitc _jit->comp
|
||||
|
@ -485,6 +487,13 @@ extern void jit_alloc(jit_pointer_t*, jit_word_t);
|
|||
extern void jit_realloc(jit_pointer_t*, jit_word_t, jit_word_t);
|
||||
void jit_free(jit_pointer_t*);
|
||||
|
||||
#if HAVE_MREMAP
|
||||
# define jit_remap() _jit_remap(_jit)
|
||||
extern jit_bool_t _jit_remap(jit_state_t*);
|
||||
#else
|
||||
# define jit_remap() 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Externs
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue