Commit 9e1f13d
committed
Move int_max_str_digits out of PyInterpreterState
Abigail does not like the fact that `PyInterpreterState` has changed
size and some fields have been moved around. Even placing
`int_max_str_digits` after `_initial_thread` does not make her happy.
Let's move the field out ouf the state and make the setting a
process-wide global. It's ugly, but better ugly than breaking somebody's
code.
```
[C]'function void PyEval_AcquireThread(PyThreadState*)' at ceval.c:452:1 has some indirect sub-type changes:
parameter 1 of type 'PyThreadState*' has sub-type changes:
in pointed to type 'typedef PyThreadState' at pytypedefs.h:24:1:
underlying type 'struct _ts' at pystate.h:82:1 changed:
type size hasn't changed
1 data member changes (2 filtered):
type of 'PyInterpreterState* _ts::interp' changed:
in pointed to type 'typedef PyInterpreterState' at pytypedefs.h:25:1:
underlying type 'struct _is' at pycore_interp.h:78:1 changed:
type size changed from 861952 to 862016 (in bits)
1 data member insertion:
'int _is::int_max_str_digits', at offset 859072 (in bits) at pycore_interp.h:179:1
2 data member changes (3 filtered):
type of 'pyruntimestate* _is::runtime' changed:
in pointed to type 'struct pyruntimestate' at pycore_runtime.h:59:1:
type size changed from 1333440 to 1333504 (in bits)
1 data member changes (2 filtered):
'PyThreadState _is::_initial_thread' offset changed from 859072 to 859136 (in bits) (by +64 bits)
```1 parent 58a4f64 commit 9e1f13d
File tree
3 files changed
+13
-12
lines changed- Include/internal
- Objects
- Python
3 files changed
+13
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
| |||
194 | 192 | | |
195 | 193 | | |
196 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1786 | 1786 | | |
1787 | 1787 | | |
1788 | 1788 | | |
1789 | | - | |
1790 | | - | |
| 1789 | + | |
1791 | 1790 | | |
1792 | 1791 | | |
1793 | 1792 | | |
| |||
2463 | 2462 | | |
2464 | 2463 | | |
2465 | 2464 | | |
2466 | | - | |
2467 | | - | |
| 2465 | + | |
2468 | 2466 | | |
2469 | 2467 | | |
2470 | 2468 | | |
| |||
6129 | 6127 | | |
6130 | 6128 | | |
6131 | 6129 | | |
| 6130 | + | |
| 6131 | + | |
6132 | 6132 | | |
6133 | 6133 | | |
6134 | 6134 | | |
| |||
6146 | 6146 | | |
6147 | 6147 | | |
6148 | 6148 | | |
6149 | | - | |
6150 | | - | |
6151 | | - | |
| 6149 | + | |
| 6150 | + | |
| 6151 | + | |
6152 | 6152 | | |
6153 | 6153 | | |
6154 | 6154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1633 | 1633 | | |
1634 | 1634 | | |
1635 | 1635 | | |
1636 | | - | |
| 1636 | + | |
1637 | 1637 | | |
1638 | 1638 | | |
1639 | 1639 | | |
| |||
1648 | 1648 | | |
1649 | 1649 | | |
1650 | 1650 | | |
1651 | | - | |
1652 | 1651 | | |
1653 | | - | |
| 1652 | + | |
1654 | 1653 | | |
1655 | 1654 | | |
1656 | 1655 | | |
| |||
0 commit comments