Permalink
Browse files

Make hotness threshold configurable

  • Loading branch information...
1 parent c57ee0a commit 8c511869ae797a5c8f6bb0883ab424408d201220 @nominolo committed Oct 23, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 vm/capability.cc
  2. +1 −0 vm/config.hh
View
@@ -27,7 +27,7 @@ Capability::Capability(MemoryManager *mm)
: mm_(mm), currentThread_(NULL),
static_roots_(NULL),
reload_state_pc_(&reload_state_code[0]),
- counters_(7), // TODO: initialise from Options
+ counters_(HOT_THRESHOLD), // TODO: initialise from Options
flags_() {
interpMsg(kModeInit);
}
View
@@ -33,6 +33,7 @@
#define MAX_HEAP_ENTRIES 300
+#define HOT_THRESHOLD 53
#define HOT_SIDE_EXIT_THRESHOLD 7
#define LC_DEFAULT_HEAP_SIZE (1UL * 1024 * 1024)

0 comments on commit 8c51186

Please sign in to comment.