mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
bpo-40521: Make dtoa bigint free list per-interpreter (GH-24821)
This commit is contained in:
parent
d0a445490e
commit
5bd1059184
3 changed files with 39 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue