File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ What's New in Stackless 3.X.X?
9
9
10
10
*Release date: 20XX-XX-XX*
11
11
12
+ - https://bitbucket.org/stackless-dev/stackless/issues/104
13
+ Initialise the global variable slp_initial_tstate early before it is used.
14
+
12
15
- https://bitbucket.org/stackless-dev/stackless/issues/103
13
16
Fix an invalid assertion during interpreter shutdown.
14
17
Original file line number Diff line number Diff line change @@ -1674,6 +1674,9 @@ static int init_stackless_methods(void)
1674
1674
int
1675
1675
_PyStackless_InitTypes (void )
1676
1676
{
1677
+ /* record the thread state for thread support */
1678
+ slp_initial_tstate = PyThreadState_GET ();
1679
+
1677
1680
if (0
1678
1681
|| init_stackless_methods ()
1679
1682
|| PyType_Ready (& PyTasklet_Type ) /* need this early for the main tasklet */
@@ -1710,9 +1713,6 @@ PyInit__stackless(void)
1710
1713
)
1711
1714
return NULL ;
1712
1715
1713
- /* record the thread state for thread support */
1714
- slp_initial_tstate = PyThreadState_GET ();
1715
-
1716
1716
/* Create the module and add the functions */
1717
1717
slp_module = PyModule_Create (& stacklessmodule );
1718
1718
if (slp_module == NULL )
You can’t perform that action at this time.
0 commit comments