Skip to content

Commit

Permalink
Bump IC rebuild threshold to 30
Browse files Browse the repository at this point in the history
* 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.
subbuss committed Feb 20, 2015
1 parent c183030 commit aa01ace
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
}

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

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

public Object[] allocateTemporaryVariables() {

0 comments on commit aa01ace

Please sign in to comment.