summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_runtime.h
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-07-02 18:19:26 (GMT)
committerGitHub <noreply@github.com>2024-07-02 18:19:26 (GMT)
commit89bf33732fd53fbb954aa088cfb34f13264746ad (patch)
tree08fe84986a1325e8b154edae00314b3dff14d173 /Include/internal/pycore_runtime.h
parent78e96bdf2417414c3d8aadc9a5f75702b94968fc (diff)
downloadcpython-89bf33732fd53fbb954aa088cfb34f13264746ad.zip
cpython-89bf33732fd53fbb954aa088cfb34f13264746ad.tar.gz
cpython-89bf33732fd53fbb954aa088cfb34f13264746ad.tar.bz2
[3.13] gh-115773: Add sizes to debug offset structure (GH-120112) (#121283)
gh-115773: Add sizes to debug offset structure (GH-120112) (cherry picked from commit b180788d4a927d23af54f4b4702ccaf254f64854) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Include/internal/pycore_runtime.h')
-rw-r--r--Include/internal/pycore_runtime.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/internal/pycore_runtime.h b/Include/internal/pycore_runtime.h
index f58eccf..341fe29 100644
--- a/Include/internal/pycore_runtime.h
+++ b/Include/internal/pycore_runtime.h
@@ -55,12 +55,14 @@ typedef struct _Py_DebugOffsets {
uint64_t version;
// Runtime state offset;
struct _runtime_state {
+ uint64_t size;
uint64_t finalizing;
uint64_t interpreters_head;
} runtime_state;
// Interpreter state offset;
struct _interpreter_state {
+ uint64_t size;
uint64_t next;
uint64_t threads_head;
uint64_t gc;
@@ -74,6 +76,7 @@ typedef struct _Py_DebugOffsets {
// Thread state offset;
struct _thread_state{
+ uint64_t size;
uint64_t prev;
uint64_t next;
uint64_t interp;
@@ -84,6 +87,7 @@ typedef struct _Py_DebugOffsets {
// InterpreterFrame offset;
struct _interpreter_frame {
+ uint64_t size;
uint64_t previous;
uint64_t executable;
uint64_t instr_ptr;
@@ -93,12 +97,14 @@ typedef struct _Py_DebugOffsets {
// CFrame offset;
struct _cframe {
+ uint64_t size;
uint64_t current_frame;
uint64_t previous;
} cframe;
// Code object offset;
struct _code_object {
+ uint64_t size;
uint64_t filename;
uint64_t name;
uint64_t linetable;
@@ -111,21 +117,25 @@ typedef struct _Py_DebugOffsets {
// PyObject offset;
struct _pyobject {
+ uint64_t size;
uint64_t ob_type;
} pyobject;
// PyTypeObject object offset;
struct _type_object {
+ uint64_t size;
uint64_t tp_name;
} type_object;
// PyTuple object offset;
struct _tuple_object {
+ uint64_t size;
uint64_t ob_item;
} tuple_object;
// Unicode object offset;
struct _unicode_object {
+ uint64_t size;
uint64_t state;
uint64_t length;
size_t asciiobject_size;