mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibCore: Remove debug logging about pending promise count
This wasn't really achieving anything other than occasionally confusing people into thinking our JS promise system was broken.
This commit is contained in:
committed by
Andreas Kling
parent
cebc4d00dd
commit
25764fbc54
Notes:
github-actions[bot]
2025-12-03 12:27:32 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/25764fbc542 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7004
@@ -43,7 +43,6 @@ struct ThreadEventQueue::Private {
|
||||
Threading::Mutex mutex;
|
||||
Vector<QueuedEvent> queued_events;
|
||||
Vector<NonnullRefPtr<Promise<NonnullRefPtr<EventReceiver>>>, 16> pending_promises;
|
||||
bool warned_promise_count { false };
|
||||
};
|
||||
|
||||
static pthread_key_t s_current_thread_event_queue_key;
|
||||
@@ -142,13 +141,6 @@ size_t ThreadEventQueue::process()
|
||||
++processed_events;
|
||||
}
|
||||
|
||||
{
|
||||
Threading::MutexLocker locker(m_private->mutex);
|
||||
if (m_private->pending_promises.size() > 30 && !m_private->warned_promise_count) {
|
||||
m_private->warned_promise_count = true;
|
||||
dbgln("ThreadEventQueue::process: Job queue wasn't designed for this load ({} promises)", m_private->pending_promises.size());
|
||||
}
|
||||
}
|
||||
return processed_events;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user