Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lj_jit.h: Increase HOTCOUNT_MAX and expand HotPenalty.val
Increase HOTCOUNT_MAX so that the JIT will make more attempts to trace a bytecode before it blacklists. Expand the HotPenalty.val from 16-bit to 32-bit to accommodate the larger value. HOTCOUNT_MAX is increased from 60,000 to 6,000,000. This is a 100x increase but the effect should be much smaller, log2(100) times, because the penalty value is increased exponentially. I don't entirely understand the existing design of the hotcount penalty: - Why initialize HOTCOUNT_MIN at 36*2? - Why increase the penalty exponentially instead of incrementally? - Why add random entropy to the increases? So I only hope that this patch doesn't break any important properties.
- Loading branch information