2
0
John Doe 7 жил өмнө
parent
commit
79630d3ee7

+ 3 - 3
lib/Common/Memory/LargeHeapBlock.cpp

@@ -1113,7 +1113,7 @@ LargeHeapBlock::ScanInitialImplicitRoots(Recycler * recycler)
             size_t objectSize = header->objectSize;
             // trim off the trailing part which is not a pointer
             objectSize = HeapInfo::RoundObjectSize(objectSize);
-            if (objectSize > 0) // otherwize the object total size is less than a pointer size
+            if (objectSize > 0) // otherwise the object total size is less than a pointer size
             {
                 recycler->ScanObjectInlineInterior((void **)objectAddress, objectSize);
             }
@@ -1170,7 +1170,7 @@ LargeHeapBlock::ScanNewImplicitRoots(Recycler * recycler)
                 size_t objectSize = header->objectSize;
                 // trim off the trailing part which is not a pointer
                 objectSize = HeapInfo::RoundObjectSize(objectSize);
-                if (objectSize > 0) // otherwize the object total size is less than a pointer size
+                if (objectSize > 0) // otherwise the object total size is less than a pointer size
                 {
                     recycler->ScanObjectInlineInterior((void **)objectAddress, objectSize);
                 }
@@ -1321,7 +1321,7 @@ LargeHeapBlock::RescanOnePage(Recycler * recycler)
             objectSize = HeapInfo::RoundObjectSize(objectSize);
         }
 #endif
-        if (objectSize > 0) // otherwize the object total size is less than a pointer size
+        if (objectSize > 0) // otherwise the object total size is less than a pointer size
         {
             bool noOOMDuringMark = true;
 #ifdef RECYCLER_VISITED_HOST