Files
serenity/Userland/Libraries/LibCore/ThreadEventQueue.cpp
Andreas Kling 1b6c784b77 LibCore: Don't reserve 2 KiB of stack memory when processing event queue
The inline capacity on ThreadEventQueue::Private::queued_events caused
us to reserve (and importantly, not initialize!) 2 KiB of stack memory
when entering ThreadEventQueue::process().

This was causing any leftover pointers to GC-allocated objects within
that memory range to keep those objects alive, even when all other
references were gone.

(cherry picked from commit 8c809fa5ee52903921191db91dce432b8a62dd01)
2024-11-10 19:39:05 -05:00

4.2 KiB