8000 gh-125207: Fix MSVC 1935 build with JIT (#125209) · python/cpython@1e098e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e098e9

Browse files
mdboompablogsal
authored andcommitted
gh-125207: Fix MSVC 1935 build with JIT (#125209)
* gh-125207: Use {0} array initializers * Simplify, as suggested in PR * Revert change to explicitly specify length Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
1 parent b3c6b2c commit 1e098e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Python/ceval.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@
9999
} \
100100
_Py_DECREF_STAT_INC(); \
101101
if (--op->ob_refcnt == 0) { \
102+
struct _reftracer_runtime_state *tracer = &_PyRuntime.ref_tracer; \
103+
if (tracer->tracer_func != NULL) { \
104+
void* data = tracer->tracer_data; \
105+
tracer->tracer_func(op, PyRefTracer_DESTROY, data); \
106+
} \
102107
destructor d = (destructor)(dealloc); \
103108
d(op); \
104109
} \

0 commit comments

Comments
 (0)
0