Changeset 330 for trunk/Include/system/gc.sbp
- Timestamp:
- Sep 9, 2007, 12:41:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/system/gc.sbp
r299 r330 126 126 ' 自身のThreadオブジェクトを生成 127 127 Dim thread As Thread(hTargetThread,GetCurrentThreadId(),0) 128 thread.Name = "main" 128 129 129 130 _System_pobj_AllThreads->BeginThread(ObjPtr( thread ),_System_gc_StackRoot_StartPtr As *LONG_PTR) … … 179 180 pdwFlags[n]=flags 180 181 LeaveCriticalSection(CriticalSection) 182 183 /* 184 ' デバッグ用 185 If n = 1996 Then 186 debug 187 End If 188 */ 181 189 182 190 n++ … … 283 291 End If 284 292 293 /* 294 _System_DebugOnly_OutputDebugString( " (scanning object)" ) 295 _System_DebugOnly_OutputDebugString( classTypeInfo.Name ) 296 _System_DebugOnly_OutputDebugString( Ex"\r\n" ) 297 */ 298 285 299 Dim i As Long 286 300 For i = 0 To ELM(classTypeInfo.numOfReference) … … 330 344 Dim i As Long 331 345 For i=0 To ELM(_System_pobj_AllThreads->ThreadNum) 332 If _System_pobj_AllThreads->ppobj_Thread[i] Then 346 Dim thread = _System_pobj_AllThreads->ppobj_Thread[i] 347 If thread Then 333 348 FillMemory(VarPtr(Context),SizeOf(CONTEXT),0) 334 349 Context.ContextFlags=CONTEXT_CONTROL 335 If _System_pobj_AllThreads->ppobj_Thread[i]->__GetContext(Context)=0 Then350 If thread->__GetContext(Context)=0 Then 336 351 _System_DebugOnly_OutputDebugString(Ex"レジスタ情報の取得に失敗しました。\r\n") 337 352 End If … … 350 365 Exit Sub 351 366 End If 367 368 /* 369 _System_DebugOnly_OutputDebugString( "(scanning thread local)" ) 370 _System_DebugOnly_OutputDebugString( thread.Name ) 371 _System_DebugOnly_OutputDebugString( Ex"\r\n" ) 372 */ 352 373 353 374 Scan( NowSp, maxNum, pbMark )
Note:
See TracChangeset
for help on using the changeset viewer.