Changeset 286773 in webkit
- Timestamp:
- Dec 9, 2021, 3:23:27 AM (5 years ago)
- Location:
- trunk/Source/bmalloc
- Files:
-
- 8 edited
-
ChangeLog (modified) (1 diff)
-
libpas/src/test/ExpendableMemoryTests.cpp (modified) (1 diff)
-
libpas/src/test/IsoHeapChaosTests.cpp (modified) (5 diffs)
-
libpas/src/test/IsoHeapPageSharingTests.cpp (modified) (1 diff)
-
libpas/src/test/IsoHeapPartialAndBaselineTests.cpp (modified) (1 diff)
-
libpas/src/test/RaceTests.cpp (modified) (1 diff)
-
libpas/src/test/TestHarness.cpp (modified) (1 diff)
-
libpas/src/test/ThingyAndUtilityHeapAllocationTests.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/bmalloc/ChangeLog
r286670 r286773 1 2021-12-09 Zan Dobersek <zdobersek@igalia.com> 2 3 [libpas] Fix up missing header includes and build guards in unit tests 4 https://bugs.webkit.org/show_bug.cgi?id=234007 5 6 Reviewed by Yusuke Suzuki. 7 8 Add missing header inclusions in different libpas unit test sources 9 to avoid build problems. 10 11 In IsoHeapChaosTests.cpp, Mach-specific thread-related header inclusion 12 and usage is put inside PAS_OS(DARWIN) build guards. On Linux, the 13 enumerator sub-tests that utilize this thread suspension and resuming 14 functionality are disabled. 15 16 * libpas/src/test/ExpendableMemoryTests.cpp: 17 * libpas/src/test/IsoHeapChaosTests.cpp: 18 (std::testAllocationChaos): 19 * libpas/src/test/IsoHeapPageSharingTests.cpp: 20 * libpas/src/test/IsoHeapPartialAndBaselineTests.cpp: 21 * libpas/src/test/RaceTests.cpp: 22 * libpas/src/test/TestHarness.cpp: 23 * libpas/src/test/ThingyAndUtilityHeapAllocationTests.cpp: 24 1 25 2021-12-08 Zan Dobersek <zdobersek@igalia.com> 2 26 -
trunk/Source/bmalloc/libpas/src/test/ExpendableMemoryTests.cpp
r285789 r286773 29 29 30 30 #include "bmalloc_heap.h" 31 #include <condition_variable> 32 #include <mutex> 31 33 #include "pas_compact_expendable_memory.h" 32 34 #include "pas_large_expendable_memory.h" -
trunk/Source/bmalloc/libpas/src/test/IsoHeapChaosTests.cpp
r285789 r286773 41 41 #include "jit_heap.h" 42 42 #include "jit_heap_config.h" 43 #include <mach/thread_act.h>44 43 #include <map> 45 44 #include "minalign32_heap.h" 46 45 #include "minalign32_heap_config.h" 46 #include <mutex> 47 47 #include "pagesize64k_heap.h" 48 48 #include "pagesize64k_heap_config.h" … … 63 63 #include <vector> 64 64 #include <thread> 65 66 #if PAS_OS(DARWIN) 67 #include <mach/thread_act.h> 68 #endif 65 69 66 70 using namespace std; … … 611 615 } 612 616 617 #if PAS_OS(DARWIN) 613 618 for (pthread_t thread : runningThreads) { 614 619 kern_return_t result = thread_suspend(pthread_mach_thread_np(thread)); 615 620 PAS_ASSERT(result == KERN_SUCCESS); 616 621 } 622 #endif 617 623 618 624 pageRanges.clear(); … … 807 813 cout << " Did " << numEnumerations << " enumerations.\n"; 808 814 815 #if PAS_OS(DARWIN) 809 816 for (pthread_t thread : runningThreads) { 810 817 kern_return_t result = thread_resume(pthread_mach_thread_np(thread)); 811 818 PAS_ASSERT(result == KERN_SUCCESS); 812 819 } 820 #endif 813 821 814 822 lock.unlock(); … … 928 936 void addTheTests(unsigned multiplier, bool testEnumerator) 929 937 { 938 #if PAS_OS(LINUX) 939 // FIXME: thread suspension/resume in libpas, required for enumerator tests, is missing on Linux 940 // http://webkit.org/b/234071 941 testEnumerator = false; 942 #endif 943 930 944 ADD_TEST(testAllocationChaos(1, 0, 1000 * multiplier, 1000000 * multiplier, uniformlyRandomUpTo5000, 10000000 * multiplier, false)); 931 945 ADD_TEST(testAllocationChaos(1, 10, 1000 * multiplier, 500000 * multiplier, sometimesSmallSometimesBig, 10000000 * multiplier, false)); -
trunk/Source/bmalloc/libpas/src/test/IsoHeapPageSharingTests.cpp
r286573 r286773 30 30 #include "HeapLocker.h" 31 31 #include "LargeSharingPoolDump.h" 32 #include <condition_variable> 32 33 #include <functional> 33 34 #include "iso_heap.h" 34 35 #include "iso_heap_config.h" 35 36 #include "iso_heap_innards.h" 37 #include <mutex> 36 38 #include "pas_all_heaps.h" 37 39 #include "pas_baseline_allocator_table.h" -
trunk/Source/bmalloc/libpas/src/test/IsoHeapPartialAndBaselineTests.cpp
r286573 r286773 33 33 #include "iso_test_heap.h" 34 34 #include "iso_test_heap_config.h" 35 #include <mutex> 35 36 #include "pas_baseline_allocator_table.h" 36 37 #include "pas_heap.h" -
trunk/Source/bmalloc/libpas/src/test/RaceTests.cpp
r282556 r286773 25 25 26 26 #include "TestHarness.h" 27 #include <condition_variable> 27 28 #include <functional> 28 29 #include "iso_heap.h" -
trunk/Source/bmalloc/libpas/src/test/TestHarness.cpp
r286516 r286773 27 27 28 28 #include "Verifier.h" 29 #include <atomic> 29 30 #include "iso_heap_config.h" 30 31 #include "iso_test_heap_config.h" -
trunk/Source/bmalloc/libpas/src/test/ThingyAndUtilityHeapAllocationTests.cpp
r286493 r286773 33 33 #include <functional> 34 34 #include <map> 35 #include <mutex> 35 36 #include "pas_all_heaps.h" 36 37 #include "pas_baseline_allocator_table.h"
Note:
See TracChangeset
for help on using the changeset viewer.