From 1b370431d0ac51eb54bfbf17247f935d48995a34 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Tue, 5 Jun 2012 01:23:08 -0400 Subject: sim: Remove FastAlloc While FastAlloc provides a small performance increase (~1.5%) over regular malloc it isn't thread safe. After removing FastAlloc and using tcmalloc I've seen a performance increase of 12% over libc malloc when running twolf for ARM. --- src/cpu/base_dyn_inst.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cpu/base_dyn_inst.hh') diff --git a/src/cpu/base_dyn_inst.hh b/src/cpu/base_dyn_inst.hh index 900a98aa0..a9cb60070 100644 --- a/src/cpu/base_dyn_inst.hh +++ b/src/cpu/base_dyn_inst.hh @@ -51,7 +51,6 @@ #include #include "arch/utility.hh" -#include "base/fast_alloc.hh" #include "base/trace.hh" #include "config/the_isa.hh" #include "cpu/checker/cpu.hh" @@ -73,7 +72,7 @@ */ template -class BaseDynInst : public FastAlloc, public RefCounted +class BaseDynInst : public RefCounted { public: // Typedef for the CPU. -- cgit v1.2.3