1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

UserspaceEmulator: Reduce malloc thrashing in backtrace capture

This commit is contained in:
Andreas Kling 2020-11-16 13:50:35 +01:00
parent e1f617950e
commit b4ff85f138

View file

@ -208,7 +208,7 @@ bool Emulator::is_in_malloc_or_free() const
Vector<FlatPtr> Emulator::raw_backtrace()
{
Vector<FlatPtr> backtrace;
Vector<FlatPtr, 128> backtrace;
backtrace.append(m_cpu.base_eip());
// FIXME: Maybe do something if the backtrace has uninitialized data in the frame chain.