2
0
Эх сурвалжийг харах

patch: GC may not traverse the stack of unactive processes

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@8583 8c9fc860-2736-0410-a75d-ab315db34111
felixf 6 жил өмнө
parent
commit
15e8a9a280

+ 1 - 1
source/Windows.Objects.Mod

@@ -204,7 +204,7 @@ TYPE
 			END;
 			END;
 
 
 			contextPos := gcContext.nextPos;
 			contextPos := gcContext.nextPos;
-			
+			IF contextPos < 0 THEN RETURN END; (* this thread is currently not active in A2 *)
 			(* stack garbage collection *)
 			(* stack garbage collection *)
 
 
 			IF Heaps.GCType= Heaps.HeuristicStackInspectionGC THEN
 			IF Heaps.GCType= Heaps.HeuristicStackInspectionGC THEN