PlayAgain 0101 (fork side): ?dcbxskip=legacy sets bit 0 of the cached-interpreter mask (ENABLE polarity), which restores the fork's old JIT-off skip of every dcbx-loop invalidation. A raw ?disable= mask cannot set it. SPDX-License-Identifier: GPL-2.0-or-later --- a/src/core-host.js +++ b/src/core-host.js @@ -2033,6 +2033,7 @@ // disable things it isn't actually disabling). // Bits 0, 1 and 2 are unused (patch 0196 removed the helpers they gated). const CACHED_INTERPRETER_DISABLE_BITS = { + dcbxskiplegacy: 1 << 0, // PlayAgain 0101: ENABLE polarity (default-off; ?dcbxskip=legacy): JIT off skips every dcbx-loop invalidation, as before 0101 dcbxloop: 1 << 3, fastbranch: 1 << 4, fastfp: 1 << 5, @@ -2103,8 +2104,14 @@ // name) must not turn them on by accident; only ?regionmtmsr=1 and // ?regshape=x64 do. mask &= ~(CACHED_INTERPRETER_DISABLE_BITS.regionmtmsr | CACHED_INTERPRETER_DISABLE_BITS.regshape | - CACHED_INTERPRETER_DISABLE_BITS.regionchaincache | CACHED_INTERPRETER_DISABLE_BITS.regionfragments); + CACHED_INTERPRETER_DISABLE_BITS.regionchaincache | CACHED_INTERPRETER_DISABLE_BITS.regionfragments | + CACHED_INTERPRETER_DISABLE_BITS.dcbxskiplegacy); } + // PlayAgain 0101: the dcbx-loop invalidation rule is the same with the JIT on and off; + // ?dcbxskip=legacy brings back the fork's JIT-off skip of every such invalidation. + if (params.get("dcbxskip") === "legacy") { + mask |= CACHED_INTERPRETER_DISABLE_BITS.dcbxskiplegacy; + } // ยง28bt block re-dispatch: DEFAULT-ON. Rigorously verified +11% warm // (4-run non-overlapping same-binary A/B, correctness-clean on battle); // it is the evidence-backed JIT-core speed win for the >50% of hot game