Skip to content

Revisit Recompilation Heuristic + nativeCallTrampoline #1298

@skrynski

Description

@skrynski

We should revisit the recheck == 97 condition. It does not play well with the current recompilation heuristic which decides to recompile every PIR_WARMUP invocations to the function (currently 100), so both conditions must be true simultaneously. Also, recheck is a global variable and other calls most likely increase it in between.
In other words, the chances it will trigger are low.

if (fail || (++recheck == 97 && RecompileHeuristic(fun))) {

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions