gh-133171: Re-enable JUMP_BACKWARD to free-threading build (gh-137800)

This commit is contained in:
Donghee Na 2025-09-24 14:19:17 +09:00 committed by GitHub
parent c8624cd367
commit c4f21d7c7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 47 additions and 34 deletions

View file

@ -7589,9 +7589,10 @@
/* Skip 1 cache entry */
// _SPECIALIZE_JUMP_BACKWARD
{
#if ENABLE_SPECIALIZATION
#if ENABLE_SPECIALIZATION_FT
if (this_instr->op.code == JUMP_BACKWARD) {
this_instr->op.code = tstate->interp->jit ? JUMP_BACKWARD_JIT : JUMP_BACKWARD_NO_JIT;
uint8_t desired = tstate->interp->jit ? JUMP_BACKWARD_JIT : JUMP_BACKWARD_NO_JIT;
FT_ATOMIC_STORE_UINT8_RELAXED(this_instr->op.code, desired);
next_instr = this_instr;
DISPATCH_SAME_OPARG();
}