@@ -116,9 +116,11 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
116
116
117
117
if ( Py_IsInitialized ( ) == 0 )
118
118
{
119
+ Console . WriteLine ( "Runtime.Initialize(): Py_Initialize..." ) ;
119
120
Py_InitializeEx ( initSigs ? 1 : 0 ) ;
120
121
if ( PyEval_ThreadsInitialized ( ) == 0 )
121
122
{
123
+ Console . WriteLine ( "Runtime.Initialize(): PyEval_InitThreads..." ) ;
122
124
PyEval_InitThreads ( ) ;
123
125
}
124
126
// XXX: Reload mode may reduct to Soft mode,
@@ -143,7 +145,9 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
143
145
IsFinalizing = false ;
144
146
InternString . Initialize ( ) ;
145
147
148
+ Console . WriteLine ( "Runtime.Initialize(): Initialize types..." ) ;
146
149
InitPyMembers ( ) ;
150
+ Console . WriteLine ( "Runtime.Initialize(): Initialize types end." ) ;
147
151
148
152
ABI . Initialize ( PyVersion ,
149
153
pyType : new BorrowedReference ( PyTypeType ) ) ;
@@ -155,6 +159,7 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
155
159
TypeManager . Initialize ( ) ;
156
160
157
161
// Initialize modules that depend on the runtime class.
162
+ Console . WriteLine ( "Runtime.Initialize(): AssemblyManager.Initialize()..." ) ;
158
163
AssemblyManager . Initialize ( ) ;
159
164
OperatorMethod . Initialize ( ) ;
160
165
if ( mode == ShutdownMode . Reload && RuntimeData . HasStashData ( ) )
@@ -178,6 +183,7 @@ internal static void Initialize(bool initSigs = false, ShutdownMode mode = Shutd
178
183
PyList_Append ( new BorrowedReference ( path ) , item ) ;
179
184
}
180
185
XDecref ( item ) ;
186
+ Console . WriteLine ( "Runtime.Initialize(): AssemblyManager.UpdatePath()..." ) ;
181
187
AssemblyManager . UpdatePath ( ) ;
182
188
}
183
189
0 commit comments