summaryrefslogtreecommitdiff
path: root/libguile/jit.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2018-09-02 10:54:35 +0200
committerAndy Wingo <wingo@pobox.com>2018-09-02 11:00:24 +0200
commit076c3ad8d71f7d48374b79b04aa162802abb5e57 (patch)
treef84696d34749c067b7fecf5afb5877efef94362e /libguile/jit.h
parentb176e714f8c38a0ac453fb8446790eb9ff3d9249 (diff)
downloadguile-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/jit.h')
-rw-r--r--libguile/jit.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libguile/jit.h b/libguile/jit.h
index a1863c2c0..365be07e9 100644
--- a/libguile/jit.h
+++ b/libguile/jit.h
@@ -44,10 +44,13 @@ struct scm_jit_function_data
#endif
};
+/* These values should be even, so that a function's counter is never
+ 0xffffffff, so that setting the JIT threshold to 0xffffffff always
+ disables compilation. */
enum scm_jit_counter_value
{
- SCM_JIT_COUNTER_ENTRY_INCREMENT = 15,
- SCM_JIT_COUNTER_LOOP_INCREMENT = 1,
+ SCM_JIT_COUNTER_ENTRY_INCREMENT = 30,
+ SCM_JIT_COUNTER_LOOP_INCREMENT = 2,
};
#endif