mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 07:30:32 +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
|
@ -471,7 +471,7 @@ VM_NAME (scm_thread *thread)
|
|||
NEXT (0);
|
||||
}
|
||||
|
||||
if (data->counter > SCM_JIT_COUNTER_THRESHOLD)
|
||||
if (data->counter > scm_jit_counter_threshold)
|
||||
{
|
||||
const uint8_t *mcode;
|
||||
|
||||
|
@ -722,7 +722,7 @@ VM_NAME (scm_thread *thread)
|
|||
|
||||
data = (struct scm_jit_function_data *) (ip + data_offset);
|
||||
|
||||
if (data->counter > SCM_JIT_COUNTER_THRESHOLD)
|
||||
if (data->counter > scm_jit_counter_threshold)
|
||||
{
|
||||
const uint8_t *mcode;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue