mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-23 12:00:21 +02:00
JIT threshold controlled by environment variable
* libguile/jit.c (scm_jit_counter_threshold): Make a static variable instead of a compile-time constant. (scm_init_jit): Init scm_jit_counter_threshold from GUILE_JIT_COUNTER_THRESHOLD environment variable. Default is -1 indicating "never JIT". * libguile/vm-engine.c (instrument-entry, instrument-loop): Adapt to new variable.
This commit is contained in:
parent
def671974c
commit
cc997293e2
3 changed files with 10 additions and 3 deletions
|
@ -48,10 +48,11 @@ enum scm_jit_counter_value
|
|||
{
|
||||
SCM_JIT_COUNTER_ENTRY_INCREMENT = 15,
|
||||
SCM_JIT_COUNTER_LOOP_INCREMENT = 1,
|
||||
SCM_JIT_COUNTER_THRESHOLD = 50
|
||||
};
|
||||
#endif
|
||||
|
||||
SCM_INTERNAL uint32_t scm_jit_counter_threshold;
|
||||
|
||||
SCM_INTERNAL const uint8_t *scm_jit_compute_mcode (scm_thread *thread,
|
||||
struct scm_jit_function_data *data);
|
||||
SCM_INTERNAL void scm_jit_enter_mcode (scm_thread *thread,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue