Changeset 203 for Include/system/gc.sbp
- Timestamp:
- Apr 4, 2007, 6:53:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/system/gc.sbp
r202 r203 139 139 140 140 Function __malloc(size As SIZE_T,flags As Byte) As VoidPtr 141 EnterCriticalSection(CriticalSection)141 ' EnterCriticalSection(CriticalSection) 142 142 Dim dwFlags As DWord 143 143 If flags and _System_GC_FLAG_INITZERO Then … … 149 149 Dim ptr = HeapAlloc(_System_hProcessHeap,dwFlags,size) 150 150 add( ptr, size, flags ) 151 LeaveCriticalSection(CriticalSection)151 ' LeaveCriticalSection(CriticalSection) 152 152 153 153 Return ptr … … 202 202 Exit Sub 203 203 End If 204 isSweeping = True205 204 OutputDebugString( Ex"garbage colletion sweep start!\r\n" ) 206 205 … … 351 350 ExitThread(0) 352 351 End If 352 isSweeping = True 353 353 354 354 ' すべてのスレッドを一時停止
Note:
See TracChangeset
for help on using the changeset viewer.