Mark Sibly 8 năm trước cách đây
mục cha
commit
e05af7ca07
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      modules/monkey/native/bbgc.cpp

+ 3 - 3
modules/monkey/native/bbgc.cpp

@@ -201,9 +201,9 @@ namespace bbGC{
 			unmarkedList->succ=unmarkedList->pred=unmarkedList;
 		}
 
-		//swap mark/unmarked lists		
-		std::swap( markedList,unmarkedList );
-		std::swap( markedBit,unmarkedBit );
+		//swap mark/unmarked lists
+		auto tmp1=markedList;markedList=unmarkedList;unmarkedList=tmp1;
+		auto tmp2=markedBit;markedBit=unmarkedBit;unmarkedBit=tmp2;
 		unmarkedBytes=markedBytes;
 		markedBytes=0;