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.
1 parent 0b773f9 commit c78af6fCopy full SHA for c78af6f
Python/jit.c
@@ -216,16 +216,13 @@ patch_32r(unsigned char *location, uint64_t value)
216
value -= (uintptr_t)location;
217
// Check that we're not out of range of 32 signed bits:
218
assert((int64_t)value >= -(1LL << 31));
219
-#if defined(__APPLE__) && defined(Py_DEBUG)
220
- // LLVM 20 on macOS debug builds: GOT entries may exceed ±2GB PC-relative
221
- // range. Truncation is safe as the target is a GOT trampoline.
+ // assert((int64_t)value < (1LL << 31));
222
if ((int64_t)value >= (1LL << 31)) {
223
- value = (uint32_t)value;
+ __builtin_debugtrap();
224
}
225
-#else
226
- assert((int64_t)value < (1LL << 31));
227
-#endif
+
228
*loc32 = (uint32_t)value;
229
230
231
// 64-bit absolute address.
0 commit comments