bpo-40521: [subinterpreters] Make dtoa bigint free list per-interpreter by dexterhahaha · Pull Request #24821 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Include/internal/pycore_dtoa.h
4 changes: 4 additions & 0 deletions Include/internal/pycore_interp.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ extern "C" {
#include "pycore_gil.h" // struct _gil_runtime_state
#include "pycore_gc.h" // struct _gc_runtime_state
#include "pycore_warnings.h" // struct _warnings_runtime_state
#include "pycore_dtoa.h"

struct _pending_calls {
PyThread_type_lock lock;
Expand Down Expand Up @@ -321,6 +322,9 @@ struct _is {

struct ast_state ast;
struct type_cache type_cache;
#ifndef PY_NO_SHORT_FLOAT_REPR
struct _PyDtoa_Bigint *dtoa_freelist[_PyDtoa_Kmax + 1];
#endif
};

extern void _PyInterpreterState_ClearModules(PyInterpreterState *interp);
Expand Down
36 changes: 19 additions & 17 deletions Python/dtoa.c