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

UserspaceEmulator: Remove unnecessary local getpid() caches

Now that LibC caches this for us, we can stop worrying.
This commit is contained in:
Andreas Kling 2020-07-21 18:46:39 +02:00
parent b820e4626c
commit d1dd5013ea
3 changed files with 14 additions and 18 deletions

View file

@ -191,8 +191,6 @@ bool Emulator::is_in_malloc_or_free() const
return (m_cpu.eip() >= m_malloc_symbol_start && m_cpu.eip() < m_malloc_symbol_end) || (m_cpu.eip() >= m_free_symbol_start && m_cpu.eip() < m_free_symbol_end);
}
static pid_t s_pid = getpid();
Vector<FlatPtr> Emulator::raw_backtrace()
{
Vector<FlatPtr> backtrace;