diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-21 18:46:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-21 19:08:01 +0200 |
commit | d1dd5013ead09bf123e95d40404c970829190ad2 (patch) | |
tree | bb2941fab31248e32a51ec9702f865ba7fe89048 /DevTools/UserspaceEmulator/Emulator.cpp | |
parent | b820e4626c1a1bde87684807273a7464f160311d (diff) | |
download | serenity-d1dd5013ead09bf123e95d40404c970829190ad2.zip |
UserspaceEmulator: Remove unnecessary local getpid() caches
Now that LibC caches this for us, we can stop worrying.
Diffstat (limited to 'DevTools/UserspaceEmulator/Emulator.cpp')
-rw-r--r-- | DevTools/UserspaceEmulator/Emulator.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/DevTools/UserspaceEmulator/Emulator.cpp b/DevTools/UserspaceEmulator/Emulator.cpp index df24092a03..15f80f6d52 100644 --- a/DevTools/UserspaceEmulator/Emulator.cpp +++ b/DevTools/UserspaceEmulator/Emulator.cpp @@ -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; |