Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Move core-only field to end of struct.
  • Loading branch information
ericsnowcurrently committed Apr 5, 2019
commit 1cdc3b20916033111324d687e58b4e6b5f70d299
16 changes: 7 additions & 9 deletions Include/internal/pycore_pystate.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ struct _is {
/* Used in Python/sysmodule.c. */
int check_interval;

#ifdef Py_BUILD_CORE
struct _ceval {
/* This single variable consolidates all requests to break out of
the fast path in the eval loop. */
_Py_atomic_int eval_breaker;
struct _pending_calls pending;
} ceval;
#endif

/* Used in Modules/_threadmodule.c. */
long num_threads;
/* Support for runtime thread stack size tuning.
Expand Down Expand Up @@ -93,6 +84,13 @@ struct _is {
PyObject *pyexitmodule;

uint64_t tstate_next_unique_id;

struct _ceval {
/* This single variable consolidates all requests to break out of
the fast path in the eval loop. */
_Py_atomic_int eval_breaker;
struct _pending_calls pending;
} ceval;
};

PyAPI_FUNC(struct _is*) _PyInterpreterState_LookUpID(PY_INT64_T);
Expand Down