Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bump IC rebuild threshold to 30
* 40 seems to benefit but is too close to the JIT threshold of 50
  so, picked a number in between.

* This is all a bit random right now. We need do this more
  systematically anyway (recompile based on execution counts,
  size of scope, type of scope, cost of rebuilding/JITting, etc.)
  using some empirical measurements that feed into some cheap
  algorithm / state-machine.
  • Loading branch information
subbuss committed Feb 20, 2015
1 parent c183030 commit aa01ace
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -51,7 +51,7 @@ public InterpreterContext(IRScope scope, Instr[] instructions, boolean rebuild)
this.cfg = scope.getCFG();
this.rebuilt = rebuild;
if (this.rebuilt) {
this.runCount = 20;
this.runCount = 30;
}

/*
Expand Down Expand Up @@ -97,7 +97,7 @@ public void incrementRunCount() {
}

public boolean needsRebuilding() {
return this.runCount == 20;
return this.runCount == 30;
}

public Object[] allocateTemporaryVariables() {
Expand Down

0 comments on commit aa01ace

Please sign in to comment.