about summary refs log tree commit diff stats
path: root/miasm2/jitter/jitcore.py
diff options
context:
space:
mode:
authorCamille Mougey <camille.mougey@cea.fr>2015-02-23 21:11:32 +0100
committerCamille Mougey <camille.mougey@cea.fr>2015-02-23 21:11:32 +0100
commit59a7c6f3d153abedd12c4a1ab9700230ad8b8002 (patch)
tree3f0a4f899e3f881736633e979334bcf91c33258c /miasm2/jitter/jitcore.py
parent686c605e62a951302088efc977c58d40bd16f25b (diff)
downloadmiasm-59a7c6f3d153abedd12c4a1ab9700230ad8b8002.tar.gz
miasm-59a7c6f3d153abedd12c4a1ab9700230ad8b8002.zip
Jitcore: BounderDict upper bound is now a class attribute
Diffstat (limited to 'miasm2/jitter/jitcore.py')
-rw-r--r--miasm2/jitter/jitcore.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/jitter/jitcore.py b/miasm2/jitter/jitcore.py
index e6f4ab02..16f201c9 100644
--- a/miasm2/jitter/jitcore.py
+++ b/miasm2/jitter/jitcore.py
@@ -26,6 +26,7 @@ class JitCore(object):
     "JiT management. This is an abstract class"
 
     jitted_block_delete_cb = None
+    jitted_block_max_size = 10000
 
     def __init__(self, ir_arch, bs=None):
         """Initialise a JitCore instance.
@@ -36,7 +37,7 @@ class JitCore(object):
         self.ir_arch = ir_arch
         self.bs = bs
         self.known_blocs = {}
-        self.lbl2jitbloc = BoundedDict(10000,
+        self.lbl2jitbloc = BoundedDict(self.jitted_block_max_size,
                                        delete_cb=self.jitted_block_delete_cb)
         self.lbl2bloc = {}
         self.log_mn = False