Skip to content

Commit 72dbc54

Browse files
FullGCActivityCallback: take IOS GC branch for WPE
The aim is to make the GC more reliable on low-memory platforms. In FullGCActivityCallback, the change is to do not bail out of GC early.
1 parent f0b98a4 commit 72dbc54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/JavaScriptCore/heap/FullGCActivityCallback.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void FullGCActivityCallback::doCollection(VM& vm)
4141
Heap& heap = vm.heap;
4242
m_didGCRecently = false;
4343

44-
#if !PLATFORM(IOS_FAMILY) || PLATFORM(MACCATALYST)
44+
#if (!PLATFORM(IOS_FAMILY) && !PLATFORM(WPE)) || PLATFORM(MACCATALYST)
4545
MonotonicTime startTime = MonotonicTime::now();
4646
if (MemoryPressureHandler::singleton().isUnderMemoryPressure() && heap.isPagedOut()) {
4747
cancel();

0 commit comments

Comments
 (0)