Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit e099059

Browse files
author
Mike Pall
committed
Add more comparison variants to Valgrind suppressions file.
1 parent d4a0943 commit e099059

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ XCFLAGS=
142142
#
143143
# This define is required to run LuaJIT under Valgrind. The Valgrind
144144
# header files must be installed. You should enable debug information, too.
145+
# Use --suppressions=lj.supp to avoid some false positives.
145146
#XCFLAGS+= -DLUAJIT_USE_VALGRIND
146147
#
147148
# This is the client for the GDB JIT API. GDB 7.0 or higher is required

src/lj.supp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1-
# Valgrind suppression file for LuaJIT 2.x.
1+
# Valgrind suppression file for LuaJIT 2.0.
22
{
33
Optimized string compare
44
Memcheck:Addr4
55
fun:lj_str_cmp
66
}
7+
{
8+
Optimized string compare
9+
Memcheck:Addr1
10+
fun:lj_str_cmp
11+
}
712
{
813
Optimized string compare
914
Memcheck:Addr4
1015
fun:lj_str_new
1116
}
17+
{
18+
Optimized string compare
19+
Memcheck:Addr1
20+
fun:lj_str_new
21+
}
1222
{
1323
Optimized string compare
1424
Memcheck:Cond

0 commit comments

Comments
 (0)