GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-125207: Fix MSVC 1935 build with JIT (#125209) · python/cpython@9f3e194

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Python
    • ceval.c
    • jit.c
  • Tools/jit
    • _writer.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Python/ceval.c‎

Copy file name to clipboardExpand all lines: Python/ceval.c
+5Lines 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
} \
Collapse file

‎Python/jit.c‎

Copy file name to clipboardExpand all lines: Python/jit.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
469469
// Loop once to find the total compiled size:
470470
size_t code_size = 0;
471471
size_t data_size = 0;
472-
jit_state state = {};
472+
jit_state state = {0};
473473
group = &trampoline;
474474
code_size += group->code_size;
475475
data_size += group->data_size;
Collapse file

‎Tools/jit/_writer.py‎

Copy file name to clipboardExpand all lines: Tools/jit/_writer.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ def _dump_footer(
3232
yield "};"
3333
yield ""
3434
yield f"static const void * const symbols_map[{max(len(symbols), 1)}] = {{"
35-
for symbol, ordinal in symbols.items():
36-
yield f" [{ordinal}] = &{symbol},"
35+
if symbols:
36+
for symbol, ordinal in symbols.items():
37+
yield f" [{ordinal}] = &{symbol},"
38+
else:
39+
yield " 0"
3740
yield "};"
3841

3942

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.