Title: [287216] trunk/Source/bmalloc
Revision
287216
Author
[email protected]
Date
2021-12-17 18:30:09 -0800 (Fri, 17 Dec 2021)

Log Message

Unreviewed, pas_probabilistic_guard_malloc_allocator.c is broken when LIBPAS is not enabled
https://bugs.webkit.org/show_bug.cgi?id=234415

* libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c:

Modified Paths

Diff

Modified: trunk/Source/bmalloc/ChangeLog (287215 => 287216)


--- trunk/Source/bmalloc/ChangeLog	2021-12-18 02:09:45 UTC (rev 287215)
+++ trunk/Source/bmalloc/ChangeLog	2021-12-18 02:30:09 UTC (rev 287216)
@@ -1,5 +1,12 @@
 2021-12-17  Yusuke Suzuki  <[email protected]>
 
+        Unreviewed, pas_probabilistic_guard_malloc_allocator.c is broken when LIBPAS is not enabled
+        https://bugs.webkit.org/show_bug.cgi?id=234415
+
+        * libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c:
+
+2021-12-17  Yusuke Suzuki  <[email protected]>
+
         Unreviewed, CMakeLists is missing pas_probabilistic_guard_malloc_allocator.[ch]
         https://bugs.webkit.org/show_bug.cgi?id=234415
 

Modified: trunk/Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c (287215 => 287216)


--- trunk/Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c	2021-12-18 02:09:45 UTC (rev 287215)
+++ trunk/Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c	2021-12-18 02:30:09 UTC (rev 287216)
@@ -43,7 +43,10 @@
 // use after frees and out of bounds accesses.
 //
 
+#include "pas_config.h"
 
+#if LIBPAS_ENABLED
+
 #include <stdlib.h>
 #include <stdbool.h>
 #include <unistd.h>
@@ -311,3 +314,5 @@
     pas_heap_lock_assert_held();
     return free_wasted_mem;
 }
+
+#endif /* LIBPAS_ENABLED */
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to