Title: [291328] trunk/Source/bmalloc
Revision
291328
Author
[email protected]
Date
2022-03-15 20:51:02 -0700 (Tue, 15 Mar 2022)

Log Message

Remove unused directory local variable in pas_enumerate_segregated_heaps.
https://bugs.webkit.org/show_bug.cgi?id=237931

Reviewed by Geoffrey Garen.

Also remove the call to pas_unwrap_local_view_cache_node().  It doesn't add any
value.  The only thing of substance that it does is a PAS_ASSERT that turns out to
be redundant because pas_enumerate_segregated_heaps() already asserts the same
thing before calling pas_unwrap_local_view_cache_node().

* libpas/src/libpas/pas_enumerate_segregated_heaps.c:
(pas_enumerate_segregated_heaps):

Modified Paths

Diff

Modified: trunk/Source/bmalloc/ChangeLog (291327 => 291328)


--- trunk/Source/bmalloc/ChangeLog	2022-03-16 03:25:52 UTC (rev 291327)
+++ trunk/Source/bmalloc/ChangeLog	2022-03-16 03:51:02 UTC (rev 291328)
@@ -1,3 +1,18 @@
+2022-03-15  Mark Lam  <[email protected]>
+
+        Remove unused directory local variable in pas_enumerate_segregated_heaps.
+        https://bugs.webkit.org/show_bug.cgi?id=237931
+
+        Reviewed by Geoffrey Garen.
+
+        Also remove the call to pas_unwrap_local_view_cache_node().  It doesn't add any
+        value.  The only thing of substance that it does is a PAS_ASSERT that turns out to
+        be redundant because pas_enumerate_segregated_heaps() already asserts the same
+        thing before calling pas_unwrap_local_view_cache_node().
+
+        * libpas/src/libpas/pas_enumerate_segregated_heaps.c:
+        (pas_enumerate_segregated_heaps):
+
 2022-03-14  Elliott Williams  <[email protected]>
 
         bmalloc.xcodeproj: Remove duplicate file reference

Modified: trunk/Source/bmalloc/libpas/src/libpas/pas_enumerate_segregated_heaps.c (291327 => 291328)


--- trunk/Source/bmalloc/libpas/src/libpas/pas_enumerate_segregated_heaps.c	2022-03-16 03:25:52 UTC (rev 291327)
+++ trunk/Source/bmalloc/libpas/src/libpas/pas_enumerate_segregated_heaps.c	2022-03-16 03:51:02 UTC (rev 291328)
@@ -728,12 +728,7 @@
                     allocator_index = redundant_node->allocator_index;
                     has_allocator = true;
                 } else {
-                    pas_segregated_size_directory* directory;
-                    
                     PAS_ASSERT_WITH_DETAIL(pas_is_wrapped_local_view_cache_node(layout_node));
-
-                    directory = pas_unwrap_local_view_cache_node(layout_node);
-
                     allocator_index = 0;
                     has_allocator = false;
                 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to