diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 1 | ||||
| -rw-r--r-- | src/lj.supp | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 28075d36..65ab754f 100644 --- a/src/Makefile +++ b/src/Makefile | |||
| @@ -142,6 +142,7 @@ XCFLAGS= | |||
| 142 | # | 142 | # |
| 143 | # This define is required to run LuaJIT under Valgrind. The Valgrind | 143 | # This define is required to run LuaJIT under Valgrind. The Valgrind |
| 144 | # header files must be installed. You should enable debug information, too. | 144 | # header files must be installed. You should enable debug information, too. |
| 145 | # Use --suppressions=lj.supp to avoid some false positives. | ||
| 145 | #XCFLAGS+= -DLUAJIT_USE_VALGRIND | 146 | #XCFLAGS+= -DLUAJIT_USE_VALGRIND |
| 146 | # | 147 | # |
| 147 | # This is the client for the GDB JIT API. GDB 7.0 or higher is required | 148 | # This is the client for the GDB JIT API. GDB 7.0 or higher is required |
diff --git a/src/lj.supp b/src/lj.supp index f1126ad7..411f2617 100644 --- a/src/lj.supp +++ b/src/lj.supp | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Valgrind suppression file for LuaJIT 2.x. | 1 | # Valgrind suppression file for LuaJIT 2.0. |
| 2 | { | 2 | { |
| 3 | Optimized string compare | 3 | Optimized string compare |
| 4 | Memcheck:Addr4 | 4 | Memcheck:Addr4 |
| @@ -6,11 +6,21 @@ | |||
| 6 | } | 6 | } |
| 7 | { | 7 | { |
| 8 | Optimized string compare | 8 | Optimized string compare |
| 9 | Memcheck:Addr1 | ||
| 10 | fun:lj_str_cmp | ||
| 11 | } | ||
| 12 | { | ||
| 13 | Optimized string compare | ||
| 9 | Memcheck:Addr4 | 14 | Memcheck:Addr4 |
| 10 | fun:lj_str_new | 15 | fun:lj_str_new |
| 11 | } | 16 | } |
| 12 | { | 17 | { |
| 13 | Optimized string compare | 18 | Optimized string compare |
| 19 | Memcheck:Addr1 | ||
| 20 | fun:lj_str_new | ||
| 21 | } | ||
| 22 | { | ||
| 23 | Optimized string compare | ||
| 14 | Memcheck:Cond | 24 | Memcheck:Cond |
| 15 | fun:lj_str_new | 25 | fun:lj_str_new |
| 16 | } | 26 | } |
