diff options
author | Andy Wingo <wingo@pobox.com> | 2018-09-02 10:54:35 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2018-09-02 11:00:24 +0200 |
commit | 076c3ad8d71f7d48374b79b04aa162802abb5e57 (patch) | |
tree | f84696d34749c067b7fecf5afb5877efef94362e /libguile/vm-engine.c | |
parent | b176e714f8c38a0ac453fb8446790eb9ff3d9249 (diff) | |
download | guile-076c3ad8d71f7d48374b79b04aa162802abb5e57.tar.gz |
JIT counter tweaks
* libguile/vm-engine.c (instrument-entry, instrument-loop): Make the
counter check >=, so that we can set the threshold to 0 and still get
compilation.
* libguile/jit.h (enum scm_jit_counter_value): Make the increments
event.
Diffstat (limited to 'libguile/vm-engine.c')
-rw-r--r-- | libguile/vm-engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/vm-engine.c b/libguile/vm-engine.c index 4356159ac..06006a190 100644 --- a/libguile/vm-engine.c +++ b/libguile/vm-engine.c @@ -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; |