icecat: add release icecat-140.6.0-1gnu1 for ecne
This commit is contained in:
parent
618c9f4145
commit
7d0f5dab3b
3382 changed files with 457689 additions and 569094 deletions
|
|
@ -82,7 +82,7 @@ class Queue {
|
|||
}
|
||||
|
||||
T& Push(T&& aElement) {
|
||||
MOZ_ASSERT(mCount < std::numeric_limits<uint32_t>::max());
|
||||
MOZ_RELEASE_ASSERT(mCount < std::numeric_limits<uint32_t>::max());
|
||||
|
||||
if (!mHead) {
|
||||
// First page
|
||||
|
|
@ -133,7 +133,7 @@ class Queue {
|
|||
bool IsEmpty() const { return !mCount; }
|
||||
|
||||
T Pop() {
|
||||
MOZ_ASSERT(!IsEmpty());
|
||||
MOZ_RELEASE_ASSERT(!IsEmpty());
|
||||
|
||||
T result = std::move(mHead->mEvents[mOffsetHead]);
|
||||
mHead->mEvents[mOffsetHead].~T();
|
||||
|
|
@ -158,12 +158,12 @@ class Queue {
|
|||
}
|
||||
|
||||
T& FirstElement() {
|
||||
MOZ_ASSERT(!IsEmpty());
|
||||
MOZ_RELEASE_ASSERT(!IsEmpty());
|
||||
return mHead->mEvents[mOffsetHead];
|
||||
}
|
||||
|
||||
const T& FirstElement() const {
|
||||
MOZ_ASSERT(!IsEmpty());
|
||||
MOZ_RELEASE_ASSERT(!IsEmpty());
|
||||
return mHead->mEvents[mOffsetHead];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -888,6 +888,7 @@ void ScheduleWantsLaterTimer(uint32_t aWantsLaterDelay) {
|
|||
sIdleMemoryCleanupRunner->Cancel();
|
||||
sIdleMemoryCleanupRunner = nullptr;
|
||||
}
|
||||
nsresult timerInitOK = NS_OK;
|
||||
if (!sIdleMemoryCleanupWantsLater) {
|
||||
auto res = NS_NewTimerWithFuncCallback(
|
||||
CheckIdleMemoryCleanupNeeded, (void*)"IdleMemoryCleanupWantsLaterCheck",
|
||||
|
|
@ -895,17 +896,28 @@ void ScheduleWantsLaterTimer(uint32_t aWantsLaterDelay) {
|
|||
"IdleMemoryCleanupWantsLaterCheck");
|
||||
if (res.isOk()) {
|
||||
sIdleMemoryCleanupWantsLater = res.unwrap().forget();
|
||||
} else {
|
||||
timerInitOK = res.unwrapErr();
|
||||
}
|
||||
} else {
|
||||
if (sIdleMemoryCleanupWantsLaterScheduled) {
|
||||
sIdleMemoryCleanupWantsLater->Cancel();
|
||||
}
|
||||
sIdleMemoryCleanupWantsLater->InitWithNamedFuncCallback(
|
||||
timerInitOK = sIdleMemoryCleanupWantsLater->InitWithNamedFuncCallback(
|
||||
CheckIdleMemoryCleanupNeeded, (void*)"IdleMemoryCleanupWantsLaterCheck",
|
||||
aWantsLaterDelay, nsITimer::TYPE_ONE_SHOT_LOW_PRIORITY,
|
||||
"IdleMemoryCleanupWantsLaterCheck");
|
||||
}
|
||||
sIdleMemoryCleanupWantsLaterScheduled = true;
|
||||
if (NS_SUCCEEDED(timerInitOK)) {
|
||||
sIdleMemoryCleanupWantsLaterScheduled = true;
|
||||
} else {
|
||||
// Under normal conditions, we would never expect this to fail.
|
||||
MOZ_ASSERT_UNREACHABLE("ScheduleWantsLaterTimer could not create the timer.");
|
||||
// If we were not able to create/init the timer, we will retry the next
|
||||
// time the main thread is about to fall idle. But if we were to stay
|
||||
// idle, we would never purge without this emergency purge.
|
||||
jemalloc_free_dirty_pages();
|
||||
}
|
||||
}
|
||||
|
||||
void ScheduleIdleMemoryCleanup(uint32_t aWantsLaterDelay) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue