summaryrefslogtreecommitdiff
path: root/DevTools/UserspaceEmulator/Emulator.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-21 18:46:39 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-21 19:08:01 +0200
commitd1dd5013ead09bf123e95d40404c970829190ad2 (patch)
treebb2941fab31248e32a51ec9702f865ba7fe89048 /DevTools/UserspaceEmulator/Emulator.cpp
parentb820e4626c1a1bde87684807273a7464f160311d (diff)
downloadserenity-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.cpp2
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;