8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7f8745 + 1bc5015 commit 0074c0aCopy full SHA for 0074c0a
yjit_core.c
@@ -1114,7 +1114,14 @@ invalidate_block_version(block_t* block)
1114
// interpreter will run the iseq
1115
1116
#if JIT_ENABLED
1117
- iseq->body->jit_func = 0;
+ // Only clear the jit_func when we're invalidating the JIT entry block.
1118
+ // We only support compiling iseqs from index 0 right now. So entry
1119
+ // points will always have an instruction index of 0. We'll need to
1120
+ // change this in the future when we support optional parameters because
1121
+ // they enter the function with a non-zero PC
1122
+ if (block->blockid.idx == 0) {
1123
+ iseq->body->jit_func = 0;
1124
+ }
1125
#endif
1126
1127
// TODO:
0 commit comments