Skip to content

ZJIT: Recompile ISEQ when a type/shape check fails on monomorphic callsites #847

@k0kubun

Description

@k0kubun

context: #771 (comment)

There are phase changes where a reasonable call-threshold setting would not observe all possible types. To address exits in such situations, it's nice to experiment with recompiling a whole ISEQ:

  1. Update the profile on such a exit
  2. Clear JIT code and reset the call counter to re-compile the ISEQ after profiling num-profiles times again

Metadata

Metadata

Assignees

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