summaryrefslogtreecommitdiff
path: root/memcheck/mc_main.c
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2006-03-03 21:02:18 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2006-03-03 21:02:18 +0000
commit7d647cb4565b933d1a7b4ca038fe6ab0ca2e6117 (patch)
treeea4c090a5828393e9253fd5d9b5e60993f7495e3 /memcheck/mc_main.c
parent301a50f9bddfaf2c894031d9750282d69bf2103c (diff)
get_abit_and_vbyte/get_abit can be a significant bottleneck when
painting/checking huge numbers of bytes resulting from client check requests. Inlining them helps significantly. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5710 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'memcheck/mc_main.c')
-rw-r--r--memcheck/mc_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c
index ec51703d..39f3c01b 100644
--- a/memcheck/mc_main.c
+++ b/memcheck/mc_main.c
@@ -352,7 +352,7 @@ static inline UWord byte_offset_w ( UWord wordszB, Bool bigendian,
/* --------------- Fundamental functions --------------- */
-static
+static inline
void get_abit_and_vbyte ( /*OUT*/UWord* abit,
/*OUT*/UWord* vbyte,
Addr a )
@@ -362,7 +362,7 @@ void get_abit_and_vbyte ( /*OUT*/UWord* abit,
*abit = read_bit_array(sm->abits, a & 0xFFFF);
}
-static
+static inline
UWord get_abit ( Addr a )
{
SecMap* sm = get_secmap_readable(a);